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 longprivate final InternalDataChannelprivate final IOEventHandlerFactoryprivate final SelectionKeyprivate final IOReactorConfigprivate final IOSessionRequestprivate final SocketChannel -
Constructor Summary
ConstructorsConstructorDescriptionInternalConnectChannel(SelectionKey key, SocketChannel socketChannel, IOSessionRequest sessionRequest, InternalDataChannel dataChannel, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidCloses this process or endpoint and releases any system resources associated with it.(package private) long(package private) Timeout(package private) voidonException(Exception cause) (package private) voidonIOEvent(int readyOps) (package private) voidtoString()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:
onIOEventin classInternalChannel- Throws:
IOException
-
getTimeout
Timeout getTimeout()- Specified by:
getTimeoutin classInternalChannel
-
getLastEventTime
long getLastEventTime()- Specified by:
getLastEventTimein classInternalChannel
-
onTimeout
- Specified by:
onTimeoutin classInternalChannel- Throws:
IOException
-
onException
- Specified by:
onExceptionin classInternalChannel
-
close
- Throws:
IOException
-
close
Description copied from interface:ModalCloseableCloses 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
-