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 longcreationTimeMillisprivate InternalDataChanneldataChannelprivate IOEventHandlerFactoryeventHandlerFactoryprivate java.nio.channels.SelectionKeykeyprivate IOReactorConfigreactorConfigprivate IOSessionRequestsessionRequestprivate java.nio.channels.SocketChannelsocketChannel
-
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 voidclose()voidclose(CloseMode closeMode)Closes this process or endpoint and releases any system resources associated with it.(package private) longgetLastEventTime()(package private) TimeoutgetTimeout()(package private) voidonException(java.lang.Exception cause)(package private) voidonIOEvent(int readyOps)(package private) voidonTimeout(Timeout timeout)java.lang.StringtoString()-
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:
onIOEventin classInternalChannel- Throws:
java.io.IOException
-
getTimeout
Timeout getTimeout()
- Specified by:
getTimeoutin classInternalChannel
-
getLastEventTime
long getLastEventTime()
- Specified by:
getLastEventTimein classInternalChannel
-
onTimeout
void onTimeout(Timeout timeout) throws java.io.IOException
- Specified by:
onTimeoutin classInternalChannel- Throws:
java.io.IOException
-
onException
void onException(java.lang.Exception cause)
- Specified by:
onExceptionin classInternalChannel
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close(CloseMode closeMode)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-