|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.xnio.nio.HandlerUtils
public final class HandlerUtils
Helpful utility methods for SPI implementations.
| Method Summary | ||
|---|---|---|
static
|
handleClosed(IoHandler<? super T> handler,
T channel)
Call the handler close method, logging any exceptions that may occur. |
|
static
|
handleOpened(IoHandler<? super T> handler,
T channel)
Call the handler open method, logging any exceptions that may occur. |
|
static
|
handleReadable(IoHandler<? super T> handler,
T channel)
Call the handler readable method, logging any exceptions that may occur. |
|
static
|
handleWritable(IoHandler<? super T> handler,
T channel)
Call the handler writable method, logging any exceptions that may occur. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> boolean handleOpened(IoHandler<? super T> handler,
T channel)
true if the handler
completed without error, which can be used to make a decision to close the channel, or ignored if desired.
handler - the handlerchannel - the channel
true if the handler completed without error.
public static <T> boolean handleClosed(IoHandler<? super T> handler,
T channel)
true if the handler
completed without error, which can be ignored if desired.
handler - the handlerchannel - the channel
true if the handler completed without error.
public static <T> boolean handleReadable(IoHandler<? super T> handler,
T channel)
true if the handler
completed without error, which can be used to make a decision to close the channel, or ignored if desired.
handler - the handlerchannel - the channel
true if the handler completed without error.
public static <T> boolean handleWritable(IoHandler<? super T> handler,
T channel)
true if the handler
completed without error, which can be used to make a decision to close the channel, or ignored if desired.
handler - the handlerchannel - the channel
true if the handler completed without error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||