|
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 ConnectionOperations
Provides API for exclusive access to channel's connection operations. Note: for internal use only.
Method Summary | |
---|---|
java.util.concurrent.Future<ChannelClosedEvent> |
closeAsync()
Close the channel asynchronously. |
java.util.concurrent.Future<ChannelOpenedEvent> |
openAsync(Endpoint endpoint,
java.lang.Long timeout)
Method is asynchronous. |
Method Detail |
---|
java.util.concurrent.Future<ChannelOpenedEvent> openAsync(Endpoint endpoint, java.lang.Long timeout)
endpoint
- of the server. If it is null then channel's one will be used.timeout
- for asynchronous operation. If it is null then the channels's one will be used.
ProtocolException
- in case of some protocol specific problems while connection opening initialization.java.util.concurrent.Future<ChannelClosedEvent> closeAsync()
Note: It hasn't related with the channel timeout. Use the future.get() with timeout instead.
timeout
- it specifies channel opening timeout in milliseconds.
ProtocolException
- in case of some protocol specific problems while connection closing.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |