Package org.apache.hc.core5.reactor
Class InternalConnectChannel
- java.lang.Object
-
- org.apache.hc.core5.reactor.InternalChannel
-
- org.apache.hc.core5.reactor.InternalConnectChannel
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,ModalCloseable
final class InternalConnectChannel extends InternalChannel
-
-
Field Summary
Fields Modifier and Type Field Description private long
creationTimeMillis
private InternalDataChannel
dataChannel
private IOEventHandlerFactory
eventHandlerFactory
private java.nio.channels.SelectionKey
key
private IOReactorConfig
reactorConfig
private IOSessionRequest
sessionRequest
private java.nio.channels.SocketChannel
socketChannel
-
Constructor Summary
Constructors Constructor Description InternalConnectChannel(java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel socketChannel, IOSessionRequest sessionRequest, InternalDataChannel dataChannel, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
close(CloseMode closeMode)
Closes this process or endpoint and releases any system resources associated with it.(package private) long
getLastEventTime()
(package private) Timeout
getTimeout()
(package private) void
onException(java.lang.Exception cause)
(package private) void
onIOEvent(int readyOps)
(package private) void
onTimeout(Timeout timeout)
java.lang.String
toString()
-
Methods inherited from class org.apache.hc.core5.reactor.InternalChannel
checkTimeout, handleIOEvent
-
-
-
-
Field Detail
-
key
private final java.nio.channels.SelectionKey key
-
socketChannel
private final java.nio.channels.SocketChannel socketChannel
-
sessionRequest
private final IOSessionRequest sessionRequest
-
dataChannel
private final InternalDataChannel dataChannel
-
eventHandlerFactory
private final IOEventHandlerFactory eventHandlerFactory
-
reactorConfig
private final IOReactorConfig reactorConfig
-
creationTimeMillis
private final long creationTimeMillis
-
-
Constructor Detail
-
InternalConnectChannel
InternalConnectChannel(java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel socketChannel, IOSessionRequest sessionRequest, InternalDataChannel dataChannel, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig)
-
-
Method Detail
-
onIOEvent
void onIOEvent(int readyOps) throws java.io.IOException
- Specified by:
onIOEvent
in classInternalChannel
- Throws:
java.io.IOException
-
getTimeout
Timeout getTimeout()
- Specified by:
getTimeout
in classInternalChannel
-
getLastEventTime
long getLastEventTime()
- Specified by:
getLastEventTime
in classInternalChannel
-
onTimeout
void onTimeout(Timeout timeout) throws java.io.IOException
- Specified by:
onTimeout
in classInternalChannel
- Throws:
java.io.IOException
-
onException
void onException(java.lang.Exception cause)
- Specified by:
onException
in classInternalChannel
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close(CloseMode closeMode)
Description copied from interface:ModalCloseable
Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect.- Parameters:
closeMode
- How to close the receiver.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-