Package org.opennms.core.tracker
Interface Messenger<ReqT,ReplyT>
-
- All Known Implementing Classes:
JnaIcmpMessenger
,Jni6IcmpMessenger
,JniIcmpMessenger
public interface Messenger<ReqT,ReplyT>
A class that represents a simple messaging interface. This is possibly loss less and does not imply guaranteed deliver. The only real requirements are those implied by the Request and Reply interfaces.- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
sendRequest(ReqT request)
Send a message using the messenger servicevoid
start(ReplyHandler<ReplyT> callback)
Start listening for replies and call the reply handler with any replies received.
-
-
-
Method Detail
-
sendRequest
void sendRequest(ReqT request) throws Exception
Send a message using the messenger service- Throws:
Exception
-
start
void start(ReplyHandler<ReplyT> callback)
Start listening for replies and call the reply handler with any replies received.
-
-