public final class WSCSession extends Object
CallPackage
in order to process the message.Modifier and Type | Class and Description |
---|---|
static class |
WSCSession.Builder
Builder for WSCSession class.
|
static interface |
WSCSession.ConnectionCallback
Callback for connection notification.
|
static class |
WSCSession.Observer
Observer for session state change.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ACK_INTERVAL
Integer property in milliseconds for message ACK interval.
|
static String |
PROP_BUSY_PING_INTERVAL
Integer property in milliseconds for busy ping interval.
|
static String |
PROP_IDLE_PING_INTERVAL
Integer property in milliseconds for idle ping interval.
|
static String |
PROP_RECONNECT_INTERVAL
Integer property in milliseconds for reconnect interval.
|
static String |
PROP_RECONNECT_TIME
Integer property in milliseconds for reconnect time.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the session.
|
String |
generateCorrelationId()
Generate a correlation ID based on current outbound sequence number of this session.
For example, if the current outbound sequence number is 100, "c101" is returned by calling this method. |
String |
generateSubSessionId()
Generates random UUID according to RFC 4122 v4.
|
IceServerConfig |
getIceServerConfig()
Gets the ICE server handler.
|
Package |
getPackage(String packageType)
Gets the package.
|
Collection<Package> |
getPackages()
Gets the packages.
|
Object |
getProperty(String name)
Gets a property.
|
String |
getSessionId()
Gets the session id.
|
SessionState |
getSessionState()
Gets the session state.
|
SubSession |
getSubSession(String id)
Gets the sub session.
|
Collection<SubSession> |
getSubSessions()
Gets the sub sessions.
|
String |
getUserName()
Gets the user name.
|
String |
toString() |
public static final String PROP_ACK_INTERVAL
public static final String PROP_BUSY_PING_INTERVAL
public static final String PROP_IDLE_PING_INTERVAL
public static final String PROP_RECONNECT_INTERVAL
public static final String PROP_RECONNECT_TIME
public Package getPackage(String packageType)
packageType
- the package typepublic Collection<Package> getPackages()
public SubSession getSubSession(String id)
id
- the idpublic Collection<SubSession> getSubSessions()
public String generateCorrelationId()
public String generateSubSessionId()
public String getUserName()
public IceServerConfig getIceServerConfig()
public String getSessionId()
public SessionState getSessionState()
public void close()