public interface SessionKeepAlive
SipSession.getKeepAlive()
Modifier and Type | Interface and Description |
---|---|
static interface |
SessionKeepAlive.Callback
An implementation of this interface may be set on the
SessionKeepAlive
as a refresh task and/or expiry callback. |
static interface |
SessionKeepAlive.Preference
Holds the preference data in the SIP
message headers.
|
static class |
SessionKeepAlive.Refresher
Represents the refresher type.
|
Modifier and Type | Method and Description |
---|---|
int |
getExpirationInterval()
Returns the expiration interval in seconds, beyond with session will expire.
|
SessionKeepAlive.Callback |
getExpiryCallback()
Return the expiry task set in the session.
|
long |
getLastExpirationTime()
Returns the last time a session refresh request is sent, received or proxied with this session,
as the number of milliseconds since midnight January 1, 1970 GMT.
|
SessionKeepAlive.Callback |
getRefreshCallback()
Return the task that was previously set using
setRefreshTask method. |
long |
getRemainingTime()
For a UAC return the remaining time for sending the next refresh request in seconds.
|
boolean |
isRefresher()
Returns whether the session is a UA that assumed the
role of refresher.
|
void |
setExpiryCallback(SessionKeepAlive.Callback callback)
Set the callback that will be executed by the container for sending the session termination request.
|
void |
setRefreshCallback(SessionKeepAlive.Callback callback)
Set the callback that will be executed by the container for sending the refresh request.
|
boolean isRefresher()
int getExpirationInterval()
long getLastExpirationTime()
long getRemainingTime()
getExpirationInterval
Will return -1 if the session keep alive is not enabled in this session.void setRefreshCallback(SessionKeepAlive.Callback callback)
callback
- Callback
that will be executed by the container for sending refresh request.SessionKeepAlive.Callback
SessionKeepAlive.Callback getRefreshCallback()
setRefreshTask
method.void setExpiryCallback(SessionKeepAlive.Callback callback)
callback
- The expiry callback to send session termination requests.SessionKeepAlive.Callback getExpiryCallback()
Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.