@Module public class SocketLinkDuplexController extends AsyncController
Constructor and Description |
---|
SocketLinkDuplexController(TcpSocketLink conn,
SocketLinkDuplexListener handler) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
complete() |
SocketLinkDuplexListener |
getHandler()
Returns the handler
|
long |
getIdleTimeMax()
Gets the max idle time.
|
ReadStream |
getReadStream()
Returns the read stream.
|
TcpSocketLink |
getSocketLink()
Returns the socket link
|
WriteStream |
getWriteStream()
Returns the write stream.
|
boolean |
isCompleteRequested() |
boolean |
isDuplex()
Returns true for a duplex controller
|
void |
onClose()
Closes the connection.
|
void |
requestComplete() |
boolean |
serviceRead() |
void |
setIdleTimeMax(long idleTime)
Sets the max idle time.
|
java.lang.String |
toString() |
getMaxIdleTime, isAsyncStarted, isCometComplete, setMaxIdleTime, timeout, wake
public SocketLinkDuplexController(TcpSocketLink conn, SocketLinkDuplexListener handler)
public boolean isDuplex()
public void setIdleTimeMax(long idleTime)
public long getIdleTimeMax()
public TcpSocketLink getSocketLink()
public ReadStream getReadStream()
public WriteStream getWriteStream()
public boolean isCompleteRequested()
public void requestComplete()
public SocketLinkDuplexListener getHandler()
public boolean serviceRead()
public void complete()
complete
in class AsyncController
public void close()
close
in class AsyncController
public void onClose()
onClose
in class AsyncController
public java.lang.String toString()
toString
in class java.lang.Object