public interface InboundStreamSession extends OsidSession
The inbound stream session is used as a listener. A callback is
registered using a StreamReceiver.
The listener is closed
when this session is closed.
Modifier and Type | Method and Description |
---|---|
Endpoint |
getEndpoint()
Gets the
Endpoint associated with this session. |
Id |
getEndpointId()
Gets the
Endpoint Id associated with
this session. |
void |
registerCallback(StreamReceiver receiver)
Registers a callback to receive incoming data.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getEndpointId()
Endpoint
Id
associated with
this session. Endpoint
Id
associated with
this sessionmandatory
- This method must be implemented. Endpoint getEndpoint() throws OperationFailedException, PermissionDeniedException
Endpoint
associated with this session. Endpoint
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerCallback(StreamReceiver receiver) throws OperationFailedException
receiver
- a stream receievrNullArgumentException
- receiver
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented.