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 boolean
Socket 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, removeCloseFutureListener
Methods 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 theID
of the session.- Returns:
- the sessions. An empty collection if there's no session.
-