org.opennms.protocols.rt
Interface Messenger<ReqT,ReplyT>


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
 void sendRequest(ReqT request)
          Send a message using the messenger service
 void start(java.util.Queue<ReplyT> replyQueue)
          Start listening for replies and enqueue any replies received to the passed in queue These replies will be pulled off by users of the service and processed.
 

Method Detail

sendRequest

void sendRequest(ReqT request)
                 throws java.lang.Exception
Send a message using the messenger service

Throws:
java.lang.Exception

start

void start(java.util.Queue<ReplyT> replyQueue)
Start listening for replies and enqueue any replies received to the passed in queue These replies will be pulled off by users of the service and processed.



Copyright © 2010. All Rights Reserved.