net.larsan.norna.base
Interface ShutdownListener


public interface ShutdownListener

This interface should be implemented by any service that wishes to be informed of shutdown events in advance. The framework should take steps to honor this interface but services should never rely on it since it only can be expected to be invoked on normal shutdowns.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
 void shutdownWarning(long ttl)
          Thsi method might be called by the framework before module shutdown.
 

Method Detail

shutdownWarning

public void shutdownWarning(long ttl)
Thsi method might be called by the framework before module shutdown. The millisecond argument is the minimum time the module have to do it's cleanup and the framework should not violate this given time unless forced by a runtime error.

Parameters:
ttl - Time to live, minimum time in milliseconds until the stop event may occur