|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerTcpConnection
TCP connection to be handled by the OfficeFloor.
| Method Summary | |
|---|---|
InputBufferStream |
getInputBufferStream()
Obtains the InputBufferStream that provides access to the data
sent from the client. |
Object |
getLock()
Obtains the lock that may be synchronized on to reduce
locking overhead of making multiple calls on this
ServerTcpConnection. |
OutputBufferStream |
getOutputBufferStream()
Obtains the OutputBufferStream to write data back to the client. |
void |
waitOnClientData()
Flags for the ManagedObject to not execute another Task
until further data is received from the client. |
| Method Detail |
|---|
Object getLock()
synchronized on to reduce
locking overhead of making multiple calls on this
ServerTcpConnection. In other words, it allows course grained
locking.
ServerTcpConnection.InputBufferStream getInputBufferStream()
InputBufferStream that provides access to the data
sent from the client.
InputBufferStream.
void waitOnClientData()
throws IOException
Flags for the ManagedObject to not execute another Task
until further data is received from the client.
On calling this the next time a Task is invoked using this
ManagedObject, data will be available from the
InputBufferStream.
IOException - If fails to initiate waiting on client.OutputBufferStream getOutputBufferStream()
Obtains the OutputBufferStream to write data back to the client.
Closing the OutputBufferStream will result in closing the
Connection.
OutputBufferStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||