Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.protocol
Interface ExternalTransport


public interface ExternalTransport

Describes API of external transport.


Method Summary
 void connect(Endpoint endpoint)
          Connects to a specified destination asynchronously.
 void disconnect()
          Disconnects from destination.
 void sendMessage(Message message)
          Sends message to the destination.
 void setTransportListener(ExternalTransportListener listener)
          Set external transport listener.
 

Method Detail

connect

void connect(Endpoint endpoint)
Connects to a specified destination asynchronously. This method is called during the protocol is opening. Method has to notify ExternalTransportListener.onConnected() otherwise it must notify ExternalTransportListener.onDisconnected(Throwable)

Parameters:
endpoint - Endpoint which describes destination address and contains configuration.
Throws:
RecursiveCallException - if this external transport notifies a listener about any events inside this method call.

disconnect

void disconnect()
Disconnects from destination. Method has to notify ExternalTransportListener.onDisconnected(Throwable)

Throws:
RecursiveCallException - if external transport notifies a listener about any events inside this method call.

sendMessage

void sendMessage(Message message)
Sends message to the destination.

Parameters:
message - which has to be sent.
Throws:
RecursiveCallException - if this external transport notifies a listener about any events inside this method call.

setTransportListener

void setTransportListener(ExternalTransportListener listener)
Set external transport listener.

Parameters:
listener - that will handle the transport events.
Throws:
RecursiveCallException - if this external transport notifies a listener about any events inside this method call.

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.