|
||||||||||
| 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 PBMessengerapp - Description of Parametermessage - Description of Parameter
public PBMessage sendRequest(PBApplication app,
PBMessage request,
int timeout)
sendRequest in interface PBMessengerapp - Description of Parameterrequest - Description of Parametertimeout - Description of Parameter
public PBResponseMarker sendAsyncRequest(PBApplication app,
PBMessage request,
int timeout)
sendAsyncRequest in interface PBMessengerapp - Description of Parameterrequest - Description of Parametertimeout - Description of Parameter
public PBSendMarker sendResponse(PBMessage request,
PBMessage reply)
sendResponse in interface PBMessengerrequest - Description of Parameterreply - Description of Parameterpublic void addMessageObserver(PBMessageObserver observer)
addMessageObserver in interface PBMessengerobserver - entity to addpublic void removeMessageObserver(PBMessageObserver observer)
removeMessageObserver in interface PBMessengerreciever - entity to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||