Package org.serviceconnector.service
Class PublishService
java.lang.Object
org.serviceconnector.service.Service
org.serviceconnector.service.StatefulService
org.serviceconnector.service.PublishService
- All Implemented Interfaces:
IPublishService
- Direct Known Subclasses:
CacheGuardian
The Class PublishService. PublishService is a remote interface in client API to a publish service and provides communication functions.
-
Field Summary
Fields inherited from class org.serviceconnector.service.StatefulService
listOfServers, serverIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateServerAndSubscribe(SCMPMessage msgToForward, SubscribeCommandCallback callback, Subscription subscription, int timeoutMillis) Allocate server and subscribe.voiddump(XMLDumpWriter writer) Dump the service into the xml writer.Gets the subscription queue.Methods inherited from class org.serviceconnector.service.StatefulService
addServer, getCountAllocatedSessions, getCountAvailableSessions, getCountServers, getServerList, notifyRemovedSession, removeServer, toStringMethods inherited from class org.serviceconnector.service.Service
getName, getType, isEnabled, setEnabled
-
Constructor Details
-
PublishService
Instantiates a new publish service.- Parameters:
name- the name
-
-
Method Details
-
getMessageQueue
Gets the subscription queue.- Specified by:
getMessageQueuein interfaceIPublishService- Returns:
- the subscription queue
-
allocateServerAndSubscribe
public void allocateServerAndSubscribe(SCMPMessage msgToForward, SubscribeCommandCallback callback, Subscription subscription, int timeoutMillis) throws Exception Allocate server and subscribe.- Parameters:
msgToForward- the msg to forwardcallback- the callbacksubscription- the subscriptiontimeoutMillis- the timeout millis- Throws:
Exception- the exception
-
dump
Description copied from class:StatefulServiceDump the service into the xml writer.- Overrides:
dumpin classStatefulService- Parameters:
writer- the writer- Throws:
Exception- the exception
-