org.apache.hivemind
Interface Discardable


public interface Discardable

Implemented by a core service implementationsthat require notification when they are discarded. This interface is only used by the threaded service model, which creates a service for a short period, then discards it when notified by the ThreadEventNotifier.

The service instance will be discarded regardless; this interface allows the core service implementation to know immediately when this happens, so that it can release any acquired resources.

Author:
Howard Lewis Ship

Method Summary
 void threadDidDiscardService()
          Invoked when a service is being discarded.
 

Method Detail

threadDidDiscardService

void threadDidDiscardService()
Invoked when a service is being discarded.