Interface Service
- All Superinterfaces:
ClassLoaderAware, Controllable
- All Known Subinterfaces:
CacheService, DistributedCacheService, FederatedCacheService, InvocationService, NameService, PagedTopicService, PartitionedService, ProxyService, QueueService, Service, TopicService
- All Known Implementing Classes:
com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.Acceptor, com.tangosol.coherence.component.net.extend.proxy.serviceProxy.CacheServiceProxy, GrpcCacheServiceProxy, GrpcTopicServiceProxy, NamedCacheProxyProtocol.ConnectionManagerStub, com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer, com.tangosol.coherence.component.util.daemon.queueProcessor.Service, com.tangosol.coherence.component.net.extend.proxy.ServiceProxy, com.tangosol.coherence.component.net.extend.proxy.serviceProxy.TopicServiceProxy, WrapperCacheService, WrapperInvocationService, WrapperService
A Service is a Controllable that emits service lifecycle events.
- Author:
- jh 2007.11.12
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddServiceListener(ServiceListener listener) Register a ServiceListener that will receive events pertaining to the lifecycle of this Service.voidremoveServiceListener(ServiceListener listener) Unregister a ServiceListener from this ConnectionManager.Methods inherited from interface ClassLoaderAware
getContextClassLoader, setContextClassLoader
-
Method Details
-
addServiceListener
Register a ServiceListener that will receive events pertaining to the lifecycle of this Service.- Parameters:
listener- the new ServiceListener to register; if the listener has already been registered, this method has no effect
-
removeServiceListener
Unregister a ServiceListener from this ConnectionManager.After a ServiceListener is removed, it will no longer receive events pertaining to the lifecycle of this Service.
- Parameters:
listener- the ServiceListener to deregister; if the listener has not previously been registered, this method has no effect
-