| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private volatile boolean | |
| private final ReadWriteLock | |
| protected final FileDescriptor | |
| private boolean | |
| protected volatile InetSocketAddress | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final Future | accept()
Implements abstract java. Accepts a connection. |
| public final <A> void | accept(A attachment, CompletionHandler<AsynchronousSocketChannel, ? super A> handler)
Implements abstract java. Accepts a connection. |
| pack-priv final void | |
| public final AsynchronousServerSocketChannel | bind(SocketAddress local, int backlog)
Implements abstract java. Binds the channel's socket to a local address and configures the socket to listen for connections. |
| public final void | close()
Implements java. Closes this channel. |
| pack-priv final void | |
| public final SocketAddress | getLocalAddress()
Implements abstract java. Implements java. Returns the socket address that this channel's socket is bound to. |
| public final <T> T | getOption(SocketOption<T> name)
Implements java. Returns the value of a socket option. |
| pack-priv abstract Future | implAccept(Object attachment, CompletionHandler<AsynchronousSocketChannel, Object> handler)
Invoked by accept to accept connection |
| pack-priv abstract void | |
| pack-priv final boolean | |
| public final boolean | |
| public final void | onCancel(PendingFuture<?, ?> task)
Implements sun. Invoked to notify channel that cancel has been invoked while holding the Future's lock. |
| public final <T> AsynchronousServerSocketChannel | setOption(SocketOption<T> name, T value)
Implements abstract java. Implements java. Sets the value of a socket option. |
| public final Set | supportedOptions()
Implements java. Returns a set of the socket options supported by this channel. |
| public final String |
| acceptKilled | back to summary |
|---|---|
| private volatile boolean acceptKilled | |
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| closeLock | back to summary |
|---|---|
| private final ReadWriteLock closeLock | |
| fd | back to summary |
|---|---|
| protected final FileDescriptor fd | |
| isReuseAddress | back to summary |
|---|---|
| private boolean isReuseAddress | |
| localAddress | back to summary |
|---|---|
| protected volatile InetSocketAddress localAddress | |
| stateLock | back to summary |
|---|---|
| private final Object stateLock | |
| AsynchronousServerSocketChannelImpl | back to summary |
|---|---|
| pack-priv AsynchronousServerSocketChannelImpl(AsynchronousChannelGroupImpl group) | |
| accept | back to summary |
|---|---|
| public final Future Implements abstract java. Doc from java. Accepts a connection. This method initiates an asynchronous operation to accept a
connection made to this channel's socket. The method behaves in exactly
the same manner as the
| |
| accept | back to summary |
|---|---|
| public final <A> void accept(A attachment, CompletionHandler<AsynchronousSocketChannel, ? super A> handler) Implements abstract java. Doc from java. Accepts a connection. This method initiates an asynchronous operation to accept a
connection made to this channel's socket. The When a new connection is accepted then the resulting To allow for concurrent handling of new connections, the completion handler is not invoked directly by the initiating thread when a new connection is accepted immediately (see Threading).
| |
| begin | back to summary |
|---|---|
| pack-priv final void begin() throws IOException Marks beginning of access to file descriptor/handle | |
| bind | back to summary |
|---|---|
| public final AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) throws IOException Implements abstract java. Doc from java. Binds the channel's socket to a local address and configures the socket to listen for connections. This method is used to establish an association between the socket and a local address. Once an association is established then the socket remains bound until the associated channel is closed. The
| |
| close | back to summary |
|---|---|
| public final void close() throws IOException Implements java. Doc from java. Closes this channel. Any outstanding asynchronous operations upon this channel will
complete with the exception This method otherwise behaves exactly as specified by the
| |
| end | back to summary |
|---|---|
| pack-priv final void end() Marks end of access to file descriptor/handle | |
| getLocalAddress | back to summary |
|---|---|
| public final SocketAddress getLocalAddress() throws IOException Implements abstract java. Implements java. Doc from java. Returns the socket address that this channel's socket is bound to. Where the channel is
| |
| getOption | back to summary |
|---|---|
| public final <T> T getOption(SocketOption<T> name) throws IOException Implements java. Doc from java. Returns the value of a socket option.
| |
| implAccept | back to summary |
|---|---|
| pack-priv abstract Future Invoked by accept to accept connection | |
| implClose | back to summary |
|---|---|
| pack-priv abstract void implClose() throws IOException Invoked to close file descriptor/handle. | |
| isAcceptKilled | back to summary |
|---|---|
| pack-priv final boolean isAcceptKilled() | |
| isOpen | back to summary |
|---|---|
| public final boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| onCancel | back to summary |
|---|---|
| public final void onCancel(PendingFuture<?, ?> task) Implements sun. Doc from sun. Invoked to notify channel that cancel has been invoked while holding the Future's lock.
| |
| setOption | back to summary |
|---|---|
| public final <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, T value) throws IOException Implements abstract java. Implements java. Doc from java. Sets the value of a socket option.
| |
| supportedOptions | back to summary |
|---|---|
| public final Set Implements java. Doc from java. Returns a set of the socket options supported by this channel. This method will continue to return the set of options even after the channel has been closed.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Set |
| defaultOptions | back to summary |
|---|---|
| pack-priv static final Set<SocketOption<?>> defaultOptions | |
| DefaultOptionsHolder | back to summary |
|---|---|
| private DefaultOptionsHolder() | |
| defaultOptions | back to summary |
|---|---|
| private static Set | |