package scm.hivemind.statefulservice;


/**
 * Lifecycle-Interface, das von Services, die unter dem "stateful" service-model
 * laufen k├Ânnen, implementiert werden kann (und sollte)
 *
 * @author Marcus Schulte
 */
public interface StatefulServiceLifecycleListener {
    
    /**
     * called when the client conversation is paused (e.g. at the end
     * of an http request)
     */
    void pauseConversation();
    
    /**
     * called when the client conversation is resumed (e.g. at the start of an
     * http request)
     */
    void resumeConversation();
    
    /**
     * called when the client conversation terminates
     * because, e.g., the session holding it is invalidated.
     */
    void terminateConversation();
}

StatefulServiceLifecycleListener (last edited 2009-09-20 22:01:36 by localhost)