public class Progress
extends java.lang.Object
Constructor and Description |
---|
Progress() |
Modifier and Type | Method and Description |
---|---|
boolean |
isAcceptRegistered(java.nio.channels.SelectableChannel channel) |
boolean |
isConnectRegistered(java.nio.channels.SelectableChannel channel) |
boolean |
isReadRegistered(java.nio.channels.SelectableChannel channel) |
boolean |
isWriteRegistered(java.nio.channels.SelectableChannel channel) |
void |
loop() |
void |
loopBlocking() |
void |
loopBlocking(long blockingDuration) |
void |
registerAccept(java.nio.channels.SelectableChannel channel,
SelectHandler callback) |
void |
registerConnect(java.nio.channels.SelectableChannel channel,
SelectHandler callback) |
void |
registerRead(java.nio.channels.SelectableChannel channel,
SelectHandler callback) |
void |
registerWrite(java.nio.channels.SelectableChannel channel,
SelectHandler callback) |
void |
removeAllInterest(java.nio.channels.SelectableChannel channel) |
void |
unregisterAccept(java.nio.channels.SelectableChannel channel) |
void |
unregisterConnect(java.nio.channels.SelectableChannel channel) |
void |
unregisterRead(java.nio.channels.SelectableChannel channel) |
void |
unregisterWrite(java.nio.channels.SelectableChannel channel) |
void |
wakeup() |
public void loop()
public void loopBlocking()
public void loopBlocking(long blockingDuration)
public void wakeup()
public void registerRead(java.nio.channels.SelectableChannel channel, SelectHandler callback) throws java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
public void unregisterRead(java.nio.channels.SelectableChannel channel)
public boolean isReadRegistered(java.nio.channels.SelectableChannel channel)
public void registerConnect(java.nio.channels.SelectableChannel channel, SelectHandler callback) throws java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
public void unregisterConnect(java.nio.channels.SelectableChannel channel)
public boolean isConnectRegistered(java.nio.channels.SelectableChannel channel)
public void registerAccept(java.nio.channels.SelectableChannel channel, SelectHandler callback) throws java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
public void unregisterAccept(java.nio.channels.SelectableChannel channel)
public boolean isAcceptRegistered(java.nio.channels.SelectableChannel channel)
public void registerWrite(java.nio.channels.SelectableChannel channel, SelectHandler callback) throws java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
public void unregisterWrite(java.nio.channels.SelectableChannel channel)
public boolean isWriteRegistered(java.nio.channels.SelectableChannel channel)
public void removeAllInterest(java.nio.channels.SelectableChannel channel)