Top Description Methods
sun.nio.ch

public Interface SelChImpl

extends Channel
Known Direct Implementers
sun.nio.ch.ServerSocketChannelImpl, sun.nio.ch.SocketChannelImpl, sun.nio.ch.SinkChannelImpl, sun.nio.ch.SourceChannelImpl, sun.nio.ch.DatagramChannelImpl
Imports
java.nio.channels.Channel, java.io.FileDescriptor, .IOException

An interface that allows translation (and more!).
Since
1.4

Method Summary

Modifier and TypeMethod and Description
public FileDescriptor
public int
public void
kill()

public default void
park(int
the event to poll
event
,
long
the timeout to wait; <= 0 to wait indefinitely
nanos
)

Disables the current thread for scheduling purposes until this channel is ready for I/O, or asynchronously closed, for up to the specified waiting time.

public default void
park(int
the event to poll
event
)

Disables the current thread for scheduling purposes until this channel is ready for I/O, or asynchronously closed.

public boolean

Returns:

true iff the new value of sk.readyOps() set by this method contains at least one bit that the previous value did not contain
translateAndSetReadyOps
(int ops, SelectionKeyImpl ski)

Sets the specified ops if present in interestOps.

public boolean

Returns:

true iff the new value of sk.readyOps() set by this method contains at least one bit that the previous value did not contain
translateAndUpdateReadyOps
(int ops, SelectionKeyImpl ski)

Adds the specified ops if present in interestOps.

public int
translateInterestOps(int ops)

Translates an interest operation set into a native event set

Inherited from java.nio.channels.Channel:
closeisOpen

Method Detail

getFDback to summary
public FileDescriptor getFD()
getFDValback to summary
public int getFDVal()
killback to summary
public void kill() throws IOException
parkback to summary
public default void park(int event, long nanos) throws IOException

Disables the current thread for scheduling purposes until this channel is ready for I/O, or asynchronously closed, for up to the specified waiting time.

This method does not report which of these caused the method to return. Callers should re-check the conditions which caused the thread to park.

Parameters
event:int

the event to poll

nanos:long

the timeout to wait; <= 0 to wait indefinitely

parkback to summary
public default void park(int event) throws IOException

Disables the current thread for scheduling purposes until this channel is ready for I/O, or asynchronously closed.

This method does not report which of these caused the method to return. Callers should re-check the conditions which caused the thread to park.

Parameters
event:int

the event to poll

translateAndSetReadyOpsback to summary
public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl ski)

Sets the specified ops if present in interestOps. The specified ops are turned on, and all other ops are turned off.

Returns:boolean

true iff the new value of sk.readyOps() set by this method contains at least one bit that the previous value did not contain

translateAndUpdateReadyOpsback to summary
public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl ski)

Adds the specified ops if present in interestOps. The specified ops are turned on without affecting the other ops.

Returns:boolean

true iff the new value of sk.readyOps() set by this method contains at least one bit that the previous value did not contain

translateInterestOpsback to summary
public int translateInterestOps(int ops)

Translates an interest operation set into a native event set