Package org.apache.sshd.common.io
Interface IoService
- All Superinterfaces:
AutoCloseable,Channel,Closeable,Closeable,IoServiceEventListenerManager
- All Known Subinterfaces:
IoAcceptor,IoConnector
- All Known Implementing Classes:
Nio2Acceptor,Nio2Connector,Nio2Service
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanSocket reuse address. -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of all sessions which are currently managed by this service.Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListenerMethods inherited from interface org.apache.sshd.common.io.IoServiceEventListenerManager
getIoServiceEventListener, setIoServiceEventListener
-
Field Details
-
DEFAULT_REUSE_ADDRESS
static final boolean DEFAULT_REUSE_ADDRESSSocket reuse address. SeeStandardSocketOptions.SO_REUSEADDR- See Also:
-
-
Method Details
-
getManagedSessions
Returns the map of all sessions which are currently managed by this service. The key of map is theIDof the session.- Returns:
- the sessions. An empty collection if there's no session.
-