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();
}

  • No labels