Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.protocol
Interface OutputChannel

All Superinterfaces:
AsyncChannel, Channel, ChannelListenerSupport
All Known Subinterfaces:
ClusterProtocol, Protocol
All Known Implementing Classes:
AbstractClusterChannel, BasicChatProtocol, CallbackClientChannelHandler, CallbackProtocol, CallbackProtocolListener, ChatClientChannelHandler, ChatProtocolsListener, ClientChannel, ClientChannelHandler, ClusterProtocolImpl, ConfServerClientChannelHandler, ConfServerProtocol, ConfServerProtocolListener, DuplexChannel, EmailClientChannelHandler, EmailProtocol, EmailProtocolListener, EspClusterProtocol, EspEmailClientChannelHandler, EspEmailClusterProtocol, EspEmailProtocol, EspEmailProtocolListener, ExternalServiceClientChannelHandler, ExternalServiceProtocol, ExternalServiceProtocolListener, FlexChatClusterProtocol, FlexChatProtocol, InteractionServerClientChannelHandler, InteractionServerProtocol, InteractionServerProtocolListener, LcaUdpHeartbeatInternalProtocol, LocalControlAgentProtocol, MessageServerProtocol, OptionalRegistrationChannel, OutboundServerProtocol, RoutingServerProtocol, ServerChannel, SolutionControlServerProtocol, StatServerProtocol, TServerProtocol, UcsClusterProtocol, UniversalContactServerClientChannelHandler, UniversalContactServerProtocol, UniversalContactServerProtocolListener, UrsCustomProtocol, UrsCustomProtocolListener, WebmediaChannel, WebMediaClientChannelHandler

public interface OutputChannel
extends Channel


Field Summary
 
Fields inherited from interface com.genesyslab.platform.commons.protocol.Channel
DEFAULT_TIMEOUT, INFINITE_TIMEOUT
 
Method Summary
 void addListener(OutputChannelListener listener)
          Attaches listener to OutputChannel implementer instance.
 void removeListener(OutputChannelListener listener)
          Detaches listener from OutputChannel implementer instance.
 void send(Message message)
          Sends message to remote party.
 
Methods inherited from interface com.genesyslab.platform.commons.protocol.Channel
close, close, getTimeout, open, open, setTimeout
 
Methods inherited from interface com.genesyslab.platform.commons.protocol.AsyncChannel
beginClose, beginOpen, getState
 
Methods inherited from interface com.genesyslab.platform.commons.protocol.ChannelListenerSupport
addChannelListener, removeChannelListener
 

Method Detail

send

void send(Message message)
          throws ProtocolException
Sends message to remote party. This method is usually asynchronous, so not every problem that occurs during send operation is thrown as exception. Detected problem may lead to error handler execution or even connection termination.

Parameters:
message - Message to send
Throws:
ProtocolException - if there is some problems with message structure
ProtocolException - some generic problems

addListener

void addListener(OutputChannelListener listener)
Attaches listener to OutputChannel implementer instance. Checks for duplication, will not add the same listener twice

Parameters:
listener - listener to be attached.

removeListener

void removeListener(OutputChannelListener listener)
Detaches listener from OutputChannel implementer instance. Does nothing if listener was not attached before.

Parameters:
listener - listener to be detached.

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.