Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Interface Service

All Superinterfaces:
  ClassLoaderAware, Controllable

All Known Subinterfaces:
  CacheService, DistributedCacheService, InvocationService, PartitionedService, Service

    public interface Service

extends Controllable

A Service is a Controllable that emits service lifecycle events.

Author:
  jh 2007.11.12
See Also:
  `ServiceListener`

Method Summary
`void` | `addServiceListener(ServiceListener listener)` Register a ServiceListener that will receive events pertaining to the lifecycle of this Service.
`void` | `removeServiceListener(ServiceListener listener)` Unregister a ServiceListener from this ConnectionManager.

Methods inherited from interface com.tangosol.util.Controllable
`configure, isRunning, shutdown, start, stop`

Methods inherited from interface com.tangosol.io.ClassLoaderAware
`getContextClassLoader, setContextClassLoader`

Method Detail

### addServiceListener

    void addServiceListener(ServiceListener listener)

  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

    void removeServiceListener(ServiceListener listener)

  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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.