|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.jockey.peerbridge.LoopbackMessenger
The PBMessenger is responsible for transmitting messages (generic, requests, replies) from the peer network.
Constructor Summary | |
LoopbackMessenger(LoopbackPeerGroup group)
Constructor. |
Method Summary | |
void |
addMessageObserver(PBMessageObserver observer)
Add a observer that wishes to receive message notifications. |
PBMessage |
createMessage()
Creates a new peer message instance to be sent. |
void |
removeMessageObserver(PBMessageObserver observer)
Remove an entity from the list of those interested in messages notifications. |
PBResponseMarker |
sendAsyncRequest(PBApplication app,
PBMessage request,
int timeout)
Transmits a message over the peer network to the target app |
PBSendMarker |
sendMessage(PBApplication app,
PBMessage message)
Transmits a message over the peer network to the target app |
PBMessage |
sendRequest(PBApplication app,
PBMessage request,
int timeout)
Transmits a request over the peer network to the target app |
PBSendMarker |
sendResponse(PBMessage request,
PBMessage reply)
Transmits a response over the peer network to the target app |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoopbackMessenger(LoopbackPeerGroup group)
Method Detail |
public PBMessage createMessage()
createMessage
in interface PBMessenger
public PBSendMarker sendMessage(PBApplication app, PBMessage message)
sendMessage
in interface PBMessenger
app
- Description of Parametermessage
- Description of Parameterpublic PBMessage sendRequest(PBApplication app, PBMessage request, int timeout)
sendRequest
in interface PBMessenger
app
- Description of Parameterrequest
- Description of Parametertimeout
- Description of Parameterpublic PBResponseMarker sendAsyncRequest(PBApplication app, PBMessage request, int timeout)
sendAsyncRequest
in interface PBMessenger
app
- Description of Parameterrequest
- Description of Parametertimeout
- Description of Parameterpublic PBSendMarker sendResponse(PBMessage request, PBMessage reply)
sendResponse
in interface PBMessenger
request
- Description of Parameterreply
- Description of Parameterpublic void addMessageObserver(PBMessageObserver observer)
addMessageObserver
in interface PBMessenger
observer
- entity to addpublic void removeMessageObserver(PBMessageObserver observer)
removeMessageObserver
in interface PBMessenger
reciever
- entity to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |