org.apache.jcs.engine.behavior
Interface IShutdownObservable

All Known Implementing Classes:
CompositeCacheManager

public interface IShutdownObservable

ShutdownObservers can observer ShutdownObservable objects. The CacheManager is the primary observable that this is intended for.

Most shutdown operations will occur outside this framework for now. The initial goal is to allow background threads that are not reachable through any reference that the cahe manager maintains to be killed on shutdown.

Perhaps the composite cache itself should be the observable object. It doesn't make much of a difference. There are some problems with region by region shutdown. Some auxiliaries are glocal. They will need to track when every region has shutdown before doing things like closing the socket with a lateral.

Author:
Aaron Smuts

Method Summary
 void deregisterShutdownObserver(IShutdownObserver observer)
          Deregisters the observer with the observable.
 void registerShutdownObserver(IShutdownObserver observer)
          Registers an observer with the observable object.
 

Method Detail

registerShutdownObserver

void registerShutdownObserver(IShutdownObserver observer)
Registers an observer with the observable object.

Parameters:
observer -

deregisterShutdownObserver

void deregisterShutdownObserver(IShutdownObserver observer)
Deregisters the observer with the observable.

Parameters:
observer -


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.