Interface TerminationDelegate
public interface TerminationDelegate
Determines if a session that is detached (in context of Stream Management) can be terminated.
An instance is associated to a session through registration with
StreamManager.addTerminationDelegate(TerminationDelegate)- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldTerminate(Duration allowableInactivity) Invoked to lear if the implementation allows the associated session to be terminated.
-
Method Details
-
shouldTerminate
Invoked to lear if the implementation allows the associated session to be terminated. A server-configured allowable inactivity duration is provided as an argument. Implementations can, but need not adhere to this value. Implementations can assume that the associated session is in detached state when this method is invoked.- Parameters:
allowableInactivity- The configured allowable inactivity duration for sessions in a detached state.- Returns:
- true if the session is to be terminated, otherwise false.
-