public class NettyIoAcceptor extends NettyIoService implements IoAcceptor
org.apache.sshd.common.util.closeable.AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
protected io.netty.bootstrap.ServerBootstrap |
bootstrap |
protected Map<SocketAddress,io.netty.channel.Channel> |
boundAddresses |
channelGroup, CONNECT_FUTURE_KEY, CONTEXT_KEY, factory, handler, sessions, sessionSeqcloseFuture, futureLock, statelogDEFAULT_REUSE_ADDRESS| Constructor and Description |
|---|
NettyIoAcceptor(NettyIoServiceFactory factory,
IoHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Collection<? extends SocketAddress> addresses) |
void |
bind(SocketAddress address) |
protected io.netty.channel.Channel |
bindInternal(SocketAddress address) |
protected void |
closeChannel(io.netty.channel.Channel channel) |
protected CloseFuture |
doCloseGracefully() |
protected void |
doCloseImmediately() |
Set<SocketAddress> |
getBoundAddresses() |
void |
unbind() |
void |
unbind(Collection<? extends SocketAddress> addresses) |
void |
unbind(SocketAddress address) |
getIoServiceEventListener, getManagedSessions, setIoServiceEventListeneraddCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenerdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManagedSessionsaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenergetIoServiceEventListener, setIoServiceEventListenerprotected final io.netty.bootstrap.ServerBootstrap bootstrap
protected final Map<SocketAddress,io.netty.channel.Channel> boundAddresses
public NettyIoAcceptor(NettyIoServiceFactory factory, IoHandler handler)
public void bind(Collection<? extends SocketAddress> addresses) throws IOException
bind in interface IoAcceptorIOExceptionpublic void bind(SocketAddress address) throws IOException
bind in interface IoAcceptorIOExceptionprotected io.netty.channel.Channel bindInternal(SocketAddress address) throws IOException
IOExceptionprotected void closeChannel(io.netty.channel.Channel channel)
public void unbind(Collection<? extends SocketAddress> addresses)
unbind in interface IoAcceptorpublic void unbind(SocketAddress address)
unbind in interface IoAcceptorpublic void unbind()
unbind in interface IoAcceptorpublic Set<SocketAddress> getBoundAddresses()
getBoundAddresses in interface IoAcceptorprotected CloseFuture doCloseGracefully()
doCloseGracefully in class org.apache.sshd.common.util.closeable.AbstractCloseableprotected void doCloseImmediately()
doCloseImmediately in class org.apache.sshd.common.util.closeable.AbstractCloseableCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.