Top Fields Methods
org.apache.sshd.common.io

public Interface IoService

extends Closeable, IoServiceEventListenerManager
Known Direct Subinterfaces
org.apache.sshd.common.io.IoAcceptor, org.apache.sshd.common.io.IoConnector
Imports
java.util.Map, org.apache.sshd.common.Closeable

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final boolean
DEFAULT_REUSE_ADDRESS

Socket reuse address.

Method Summary

Modifier and TypeMethod and Description
public Map<Long, IoSession>

Returns:

the sessions. An empty collection if there's no session.
getManagedSessions
()

Returns the map of all sessions which are currently managed by this service.

Inherited from org.apache.sshd.common.Closeable:
addCloseFutureListenerclosecloseclosegetMaxCloseWaitTimeisClosedisClosingisOpenremoveCloseFutureListener
Inherited from org.apache.sshd.common.io.IoServiceEventListenerManager:
getIoServiceEventListenersetIoServiceEventListener

Field Detail

DEFAULT_REUSE_ADDRESSback to summary
public static final boolean DEFAULT_REUSE_ADDRESS

Socket reuse address. See java.net.StandardSocketOptions#SO_REUSEADDR

Method Detail

getManagedSessionsback to summary
public Map<Long, IoSession> getManagedSessions()

Returns the map of all sessions which are currently managed by this service. The key of map is the ID of the session.

Returns:Map<Long, IoSession>

the sessions. An empty collection if there's no session.