|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncChannelOperations
Asynchronous operations.
Method Summary | ||
---|---|---|
|
closeAsync(CompletionHandler<ChannelClosedEvent,A> handler,
A attachment)
Close channel asynchronously. |
|
|
closeAsync(long timeout,
CompletionHandler<ChannelClosedEvent,A> handler,
A attachment)
Open channel asynchronously. |
|
|
openAsync(CompletionHandler<java.util.EventObject,A> handler,
A attachment)
Open channel asynchronously. |
|
|
openAsync(long timeout,
CompletionHandler<java.util.EventObject,A> handler,
A attachment)
Open channel asynchronously. |
Method Detail |
---|
<A> void openAsync(CompletionHandler<java.util.EventObject,A> handler, A attachment)
handler
- success/fail result handling.<A> void openAsync(long timeout, CompletionHandler<java.util.EventObject,A> handler, A attachment)
timeout
- operation timeout in milliseconds. Timeout will cancel the opening.handler
- success/fail result handling.<A> void closeAsync(CompletionHandler<ChannelClosedEvent,A> handler, A attachment)
handler
- success/fail result handling.<A> void closeAsync(long timeout, CompletionHandler<ChannelClosedEvent,A> handler, A attachment)
timeout
- operation timeout in milliseconds.
Timeout do not cancel the closing and do not close forcly the channel.handler
- success/fail result handling.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |