Modifier and Type | Class and Description |
---|---|
pack-priv static interface | Port.
Implemented by clients registered with this port. |
Modifier and Type | Field and Description |
---|---|
protected final Map | |
protected final ReadWriteLock |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv final Object | attachForeignChannel(final Channel channel, FileDescriptor fd)
Implements abstract sun. Attaches a foreign channel to this group. |
pack-priv final void | closeAllChannels()
Implements abstract sun. Closes all channels in the group |
pack-priv final void | detachForeignChannel(Object key)
Implements abstract sun. Detaches a foreign channel from this group. |
pack-priv final boolean | isEmpty()
Implements abstract sun. Returns true if there are no channels in the group |
protected void | preUnregister(int fd)
Callback method for implementations that need special handling when fd is removed (currently only needed in the AIX-Port - see AixPollPort.java). |
pack-priv final void | |
pack-priv abstract void | |
pack-priv final void |
fdToChannel | back to summary |
---|---|
protected final Map<Integer, Port. |
fdToChannelLock | back to summary |
---|---|
protected final ReadWriteLock fdToChannelLock |
Port | back to summary |
---|---|
pack-priv Port(AsynchronousChannelProvider provider, ThreadPool pool) |
attachForeignChannel | back to summary |
---|---|
pack-priv final Object attachForeignChannel(final Channel channel, FileDescriptor fd) Implements abstract sun. Doc from sun. Attaches a foreign channel to this group.
|
closeAllChannels | back to summary |
---|---|
pack-priv final void closeAllChannels() Implements abstract sun. Doc from sun. Closes all channels in the group
|
detachForeignChannel | back to summary |
---|---|
pack-priv final void detachForeignChannel(Object key) Implements abstract sun. Doc from sun. Detaches a foreign channel from this group.
|
isEmpty | back to summary |
---|---|
pack-priv final boolean isEmpty() Implements abstract sun. Doc from sun. Returns true if there are no channels in the group
|
preUnregister | back to summary |
---|---|
protected void preUnregister(int fd) Callback method for implementations that need special handling when fd is removed (currently only needed in the AIX-Port - see AixPollPort.java). |
register | back to summary |
---|---|
pack-priv final void register(int fd, Port. Register channel identified by its file descriptor |
startPoll | back to summary |
---|---|
pack-priv abstract void startPoll(int fd, int events) Register file descriptor with polling mechanism for given events. The implementation should translate the events as required. |
unregister | back to summary |
---|---|
pack-priv final void unregister(int fd) Unregister channel identified by its file descriptor |
Modifier and Type | Method and Description |
---|---|
public void |
onEvent | back to summary |
---|---|
public void onEvent(int events, boolean mayInvokeDirect) |