Class TCPConnectionImpl
java.lang.Object
io.deephaven.enterprise.niowrapper.sched.NullIOHandler
io.deephaven.enterprise.comm.protocol.tcp.TCPConnectionImpl
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,TCPConnection,ConnectorWrapper.Listener,IOHandler
public class TCPConnectionImpl
extends NullIOHandler
implements TCPConnection, ConnectorWrapper.Listener
Created by IntelliJ IDEA. User: rfang Date: Jan 7, 2009 Time: 1:56:58 PM To change this template use File | Settings
| File Templates.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.deephaven.enterprise.comm.protocol.tcp.TCPConnection
TCPConnection.Listener, TCPConnection.Null, TCPConnection.Parameters -
Field Summary
Fields inherited from interface io.deephaven.enterprise.comm.protocol.tcp.TCPConnection
NULL -
Constructor Summary
ConstructorsConstructorDescriptionTCPConnectionImpl(TCPConnection.Parameters params, ProtocolHandler handler, TCPConnection.Listener listener, NIODataRecorder recorder, com.fishlib.io.logger.Logger log) -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) voidvoidvoidconnect(InetSocketAddress address) voidbooleanvoidvoidvoidbooleanhandleIncoming(IOJob job) Handle input from an IOJob.voidvoidvoidsend(ByteBuffer buf) voidMethods inherited from class io.deephaven.enterprise.niowrapper.sched.NullIOHandler
endJob, handleEOF, handleError, handleOutgoing, handleTimeout
-
Constructor Details
-
TCPConnectionImpl
public TCPConnectionImpl(TCPConnection.Parameters params, ProtocolHandler handler, TCPConnection.Listener listener, NIODataRecorder recorder, com.fishlib.io.logger.Logger log)
-
-
Method Details
-
connect
- Specified by:
connectin interfaceTCPConnection- Throws:
IOException
-
connect
- Specified by:
connectin interfaceTCPConnection- Throws:
IOException
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceTCPConnection
-
send
- Specified by:
sendin interfaceTCPConnection- Throws:
IOException
-
send
- Specified by:
sendin interfaceTCPConnection- Throws:
IOException
-
send
- Specified by:
sendin interfaceTCPConnection- Throws:
IOException
-
attach
- Specified by:
attachin interfaceTCPConnection
-
getAttachment
- Specified by:
getAttachmentin interfaceTCPConnection
-
startJob
- Specified by:
startJobin interfaceIOHandler- Overrides:
startJobin classNullIOHandler
-
handleIncoming
Description copied from interface:IOHandlerHandle input from an IOJob. This method will be called again if it returns true, and it must do so if the handler does not consume all the data (or it might never be called to finish processing the buffer).- Specified by:
handleIncomingin interfaceIOHandler- Overrides:
handleIncomingin classNullIOHandler- Parameters:
job- the IOJob containing the input data- Returns:
- true if there is or might be enough data to process another message, false if the buffer is empty or there was an error
-
connectionFailed
- Specified by:
connectionFailedin interfaceConnectorWrapper.Listener
-
connectionDisconnected
- Specified by:
connectionDisconnectedin interfaceConnectorWrapper.Listener
-
connectionSucceeded
public void connectionSucceeded()- Specified by:
connectionSucceededin interfaceConnectorWrapper.Listener
-
connecting
public void connecting()- Specified by:
connectingin interfaceConnectorWrapper.Listener
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) - Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable
-