Configuration Platform SDK 7.6 API Reference

com.genesyslab.platform.commons.protocol
Interface AsyncChannel

All Superinterfaces:
ChannelListenerSupport
All Known Subinterfaces:
Channel, InputChannel, OutputChannel, Protocol, RequestChannel, ResponseChannel
All Known Implementing Classes:
AbstractChannel, ClientChannel, DuplexChannel, ServerChannel

public interface AsyncChannel
extends ChannelListenerSupport

Communication channel.


Method Summary
 void beginClose()
          Method is asynchronous.
 void beginOpen()
          Method is asynchronous.
 ChannelState getState()
          Return channel state.
 
Methods inherited from interface com.genesyslab.platform.commons.protocol.ChannelListenerSupport
addChannelListener, removeChannelListener
 

Method Detail

beginOpen

public void beginOpen()
               throws ProtocolException
Method is asynchronous. It will start connection sequence and return. Whether connection is established on return is not specified.

Throws:
ProtocolException - in case of problems establishing connection

beginClose

public void beginClose()
Method is asynchronous. It will start disconnection and return. Whether connection is closed on return is not specified.


getState

public ChannelState getState()
Return channel state. Note that the state returned is just a hint. It could change any time (e.g. just after this method returns).

Returns:
State of the connection

Configuration Platform SDK 7.6 API Reference

Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.