APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.ch

pack-priv Class UnixAsynchronousServerSocketChannelImpl

extends AsynchronousServerSocketChannelImpl
implements PollableChannel
Class Inheritance
All Implemented Interfaces
sun.nio.ch.Port.PollableChannel, java.io.Closeable, java.lang.AutoCloseable
Imports
java.nio.channels.*, java.util.concurrent.*, java.io.IOException, .FileDescriptor, java.net.InetSocketAddress, java.util.concurrent.atomic.AtomicBoolean

Unix implementation of AsynchronousServerSocketChannel

Field Summary

Modifier and TypeField and Description
private Object
private PendingFuture<AsynchronousSocketChannel, Object>
private CompletionHandler<AsynchronousSocketChannel, Object>
private final AtomicBoolean
private boolean
private final int
private static final NativeDispatcher
private final Port
private final Object
Inherited from sun.nio.ch.AsynchronousServerSocketChannelImpl:
fdlocalAddress

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
private AsynchronousSocketChannel
finishAccept(FileDescriptor newfd, final InetSocketAddress remote)

Completes the accept by creating the AsynchronousSocketChannel for the given file descriptor and remote address.

public AsynchronousChannelGroupImpl
pack-priv Future<AsynchronousSocketChannel>
implAccept(Object att, CompletionHandler<AsynchronousSocketChannel, Object> handler)

Implements abstract sun.nio.ch.AsynchronousServerSocketChannelImpl.implAccept.

Invoked by accept to accept connection

pack-priv void
implClose()

Implements abstract sun.nio.ch.AsynchronousServerSocketChannelImpl.implClose.

Invoked to close file descriptor/handle.

public void
onEvent(int events, boolean mayInvokeDirect)

Implements sun.nio.ch.Port.PollableChannel.onEvent.

Invoked by event handling thread when listener socket is polled

Inherited from sun.nio.ch.AsynchronousServerSocketChannelImpl:
acceptacceptbeginbindcloseendgetLocalAddressgetOptionisAcceptKilledisOpenonCancelsetOptionsupportedOptionstoString

Field Detail

acceptAttachmentback to summary
private Object acceptAttachment
acceptFutureback to summary
private PendingFuture<AsynchronousSocketChannel, Object> acceptFuture
acceptHandlerback to summary
private CompletionHandler<AsynchronousSocketChannel, Object> acceptHandler
acceptingback to summary
private final AtomicBoolean accepting
acceptPendingback to summary
private boolean acceptPending
fdValback to summary
private final int fdVal
ndback to summary
private static final NativeDispatcher nd
portback to summary
private final Port port
updateLockback to summary
private final Object updateLock

Constructor Detail

UnixAsynchronousServerSocketChannelImplback to summary
pack-priv UnixAsynchronousServerSocketChannelImpl(Port port) throws IOException

Method Detail

enableAcceptback to summary
private void enableAccept()
finishAcceptback to summary
private AsynchronousSocketChannel finishAccept(FileDescriptor newfd, final InetSocketAddress remote) throws IOException

Completes the accept by creating the AsynchronousSocketChannel for the given file descriptor and remote address. If this method completes with an IOException then the channel/file descriptor will be closed.

groupback to summary
public AsynchronousChannelGroupImpl group()

Implements sun.nio.ch.Groupable.group.

Annotations
@Override
implAcceptback to summary
pack-priv Future<AsynchronousSocketChannel> implAccept(Object att, CompletionHandler<AsynchronousSocketChannel, Object> handler)

Implements abstract sun.nio.ch.AsynchronousServerSocketChannelImpl.implAccept.

Doc from sun.nio.ch.AsynchronousServerSocketChannelImpl.implAccept.

Invoked by accept to accept connection

Annotations
@Override
implCloseback to summary
pack-priv void implClose() throws IOException

Implements abstract sun.nio.ch.AsynchronousServerSocketChannelImpl.implClose.

Doc from sun.nio.ch.AsynchronousServerSocketChannelImpl.implClose.

Invoked to close file descriptor/handle.

Annotations
@Override
onEventback to summary
public void onEvent(int events, boolean mayInvokeDirect)

Implements sun.nio.ch.Port.PollableChannel.onEvent.

Invoked by event handling thread when listener socket is polled

Annotations
@Override