public class RSPServiceProvider extends java.lang.Object implements ServiceProvider
| Constructor and Description |
|---|
RSPServiceProvider()
Constructor
|
| 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.
|
public void startListening(java.lang.String endPoint,
MessageReceiver messageReceiver)
ServiceProviderstartListening in interface ServiceProviderendPoint - which endpoint to be listenedmessageReceiver - instance for dealing with incoming messagespublic void stopListening()
ServiceProviderstopListening in interface ServiceProviderpublic void sendMessage(java.lang.String msgText,
java.lang.String destinationEndPoint)
ServiceProvidersendMessage in interface ServiceProvidermsgText - the message contentdestinationEndPoint - the destination to send the message