Modifier | Constructor and Description |
---|---|
protected |
SubSession(Package pPackage)
Instantiates a new subsession.
|
protected |
SubSession(Package pPackage,
String id)
Instantiates a new subsession.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
dispose()
Disposes of any resources allocated by the subsession.
|
String |
getId()
Gets the id.
|
Package |
getPackage()
Gets the package.
|
protected abstract void |
onMessage(Frame frame)
Handles an inbound message on an existing subsession.
|
protected void |
sendMessage(Frame frame)
Sends the message frame.
|
protected SubSession(Package pPackage)
pPackage
- the packagepublic Package getPackage()
public final String getId()
protected final void sendMessage(Frame frame)
frame
- Messageprotected abstract void dispose()
protected abstract void onMessage(Frame frame)
frame
- Message