public interface ServiceProvider
| Modifier and Type | Method and Description |
|---|---|
void |
sendMessage(java.lang.String msgText,
java.lang.String destinationEndPoint)
With this method, a service can send a message to the other service.
|
void |
startListening(java.lang.String endPoint,
MessageReceiver messageReceiver)
This method enables a service to listen for messages on the given endpoint.
|
void |
stopListening()
This method stops a service for listening to the incoming messages.
|
void startListening(java.lang.String endPoint,
MessageReceiver messageReceiver)
endPoint - which endpoint to be listenedmessageReceiver - instance for dealing with incoming messagesvoid stopListening()
void sendMessage(java.lang.String msgText,
java.lang.String destinationEndPoint)
msgText - the message contentdestinationEndPoint - the destination to send the message