SipSessionActivationListener
The SipSessionActivationListener interface allows objects bound to a SipSession to listen for container events related to session passivation and activation. Passivation occurs when the session is temporarily persisted or migrated to another virtual machine (VM), while activation occurs when the session is restored.
Objects implementing this interface and bound to a SipSession are notified when the container passivates or activates the session. This ensures that such objects can perform necessary actions, such as releasing resources during passivation or reinitializing state during activation.
Methods:
sessionWillPassivate
void sessionWillPassivate(SipSessionEvent se)
This method is called to notify that a SipSession is about to be passivated. Passivation typically occurs when the session is being persisted or migrated by the container. Implementations can use this method to perform tasks such as releasing resources or saving state before the session is passivated.
Parameters:
se: A SipSessionEvent object identifying the session that is about to be passivated.
sessionDidActivate
void sessionDidActivate(SipSessionEvent se)
This method is called to notify that a SipSession has just been activated. Activation occurs when a previously passivated session is restored by the container. Implementations can use this method to reinitialize resources or perform other tasks required after activation.
Parameters:
se: A SipSessionEvent object identifying the session that has just been activated.
Start innovating with Mobius
What's next? Let's talk!