Package org.apache.hc.core5.reactor
Class ListenerEndpointImpl
java.lang.Object
org.apache.hc.core5.reactor.ListenerEndpointImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,ModalCloseable,ListenerEndpoint
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SocketAddress(package private) final Objectprivate final AtomicBooleanprivate final SelectionKey -
Constructor Summary
ConstructorsConstructorDescriptionListenerEndpointImpl(SelectionKey key, Object attachment, SocketAddress address) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidCloses this process or endpoint and releases any system resources associated with it.Returns the socket address of this endpoint.booleanisClosed()Determines if this endpoint has been closed and is no longer listens for incoming connections.toString()
-
Field Details
-
key
-
address
-
attachment
-
closed
-
-
Constructor Details
-
ListenerEndpointImpl
-
-
Method Details
-
getAddress
Description copied from interface:ListenerEndpointReturns the socket address of this endpoint.- Specified by:
getAddressin interfaceListenerEndpoint- Returns:
- socket address.
-
toString
-
isClosed
public boolean isClosed()Description copied from interface:ListenerEndpointDetermines if this endpoint has been closed and is no longer listens for incoming connections.- Specified by:
isClosedin interfaceListenerEndpoint- Returns:
trueif the endpoint has been closed,falseotherwise.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- 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.- Specified by:
closein interfaceModalCloseable- Parameters:
closeMode- How to close the receiver.
-