| |
|
| java.lang.Object org.xsocket.connection.spi.ChainableIoHandler org.xsocket.connection.spi.IoSocketHandler
IoSocketHandler | IoSocketHandler(SocketChannel channel, IoSocketDispatcher dispatcher, String connectionId) throws IOException(Code) | | constructor
Parameters: channel - the underlying channel Parameters: idLocalPrefix - the id namespace prefix Parameters: dispatcher - the dispatcher throws: IOException - If some other I/O error occurs |
checkConnection | void checkConnection()(Code) | | check if the underyling connection is timed out
Parameters: current - the current time true, if the connection has been timed out |
checkConnectionTimeout | boolean checkConnectionTimeout(Long currentMillis)(Code) | | check if the underlying connection is timed out
Parameters: currentMillis - the current time true, if the connection has been timed out |
checkIdleTimeout | boolean checkIdleTimeout(Long currentMillis)(Code) | | check the timeout
Parameters: currentMillis - the current time true, if the connection has been timed out |
flushOutgoing | public void flushOutgoing()(Code) | | |
getChannel | public SocketChannel getChannel()(Code) | | return the underlying channel
the underlying channel |
getConnectionTimeoutMillis | public long getConnectionTimeoutMillis()(Code) | | gets the connection timeout
the connection timeout |
getIdleTimeoutMillis | public long getIdleTimeoutMillis()(Code) | | |
getLocalPort | final public int getLocalPort()(Code) | | |
getPendingWriteDataSize | public int getPendingWriteDataSize()(Code) | | |
getRemainingMillisToConnectionTimeout | public long getRemainingMillisToConnectionTimeout()(Code) | | |
getRemainingMillisToIdleTimeout | public long getRemainingMillisToIdleTimeout()(Code) | | |
getRemotePort | final public int getRemotePort()(Code) | | |
hasDataToSend | public boolean hasDataToSend()(Code) | | |
isOpen | public boolean isOpen()(Code) | | |
onDispatcherClose | void onDispatcherClose()(Code) | | |
reset | public boolean reset()(Code) | | |
setConnectionTimeoutMillis | public void setConnectionTimeoutMillis(long timeoutMillis)(Code) | | sets the connection timeout
Parameters: timeout - the connection timeout |
setIdleTimeoutMillis | public void setIdleTimeoutMillis(long timeoutMillis)(Code) | | |
setRetryRead | void setRetryRead(boolean isRetryRead)(Code) | | |
|
|
|