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:
Closeable
,AutoCloseable
,ModalCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final InternalDataChannel
private final IOEventHandlerFactory
private final SelectionKey
private final IOReactorConfig
private final IOSessionRequest
private final SocketChannel
-
Constructor Summary
ConstructorsConstructorDescriptionInternalConnectChannel
(SelectionKey key, SocketChannel socketChannel, IOSessionRequest sessionRequest, InternalDataChannel dataChannel, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Closes this process or endpoint and releases any system resources associated with it.(package private) long
(package private) Timeout
(package private) void
onException
(Exception cause) (package private) void
onIOEvent
(int readyOps) (package private) void
toString()
Methods inherited from class org.apache.hc.core5.reactor.InternalChannel
checkTimeout, handleIOEvent
-
Field Details
-
key
-
socketChannel
-
sessionRequest
-
dataChannel
-
eventHandlerFactory
-
reactorConfig
-
creationTimeMillis
private final long creationTimeMillis
-
-
Constructor Details
-
InternalConnectChannel
InternalConnectChannel(SelectionKey key, SocketChannel socketChannel, IOSessionRequest sessionRequest, InternalDataChannel dataChannel, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig)
-
-
Method Details
-
onIOEvent
- Specified by:
onIOEvent
in classInternalChannel
- Throws:
IOException
-
getTimeout
Timeout getTimeout()- Specified by:
getTimeout
in classInternalChannel
-
getLastEventTime
long getLastEventTime()- Specified by:
getLastEventTime
in classInternalChannel
-
onTimeout
- Specified by:
onTimeout
in classInternalChannel
- Throws:
IOException
-
onException
- Specified by:
onException
in classInternalChannel
-
close
- Throws:
IOException
-
close
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
-