Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.protocol
Interface ConnectionOperations


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

openAsync

java.util.concurrent.Future<ChannelOpenedEvent> openAsync(Endpoint endpoint,
                                                          java.lang.Long timeout)
Method is asynchronous. It will start connection sequence and return. Whether connection is established on return is not specified. It's change the channel's endpoint if it is assigned.

Parameters:
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.
Throws:
ProtocolException - in case of some protocol specific problems while connection opening initialization.

closeAsync

java.util.concurrent.Future<ChannelClosedEvent> closeAsync()
Close the channel asynchronously.

Note: It hasn't related with the channel timeout. Use the future.get() with timeout instead.

Parameters:
timeout - it specifies channel opening timeout in milliseconds.
Throws:
ProtocolException - in case of some protocol specific problems while connection closing.

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.