Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.protocol
Interface OutputChannelListener

All Superinterfaces:
Listener
All Known Implementing Classes:
AbstractClusterChannel.IntOutputChannelListener

public interface OutputChannelListener
extends Listener

Defines listener that can be attached to any implementer of OutputChannel interface to monitor message send operations.


Method Summary
 void onSend(OutputChannel channel, Message message)
          Handler method, invoked on each send operation before message is passed down to transport layer.
 

Method Detail

onSend

void onSend(OutputChannel channel,
            Message message)
Handler method, invoked on each send operation before message is passed down to transport layer. Invocation happens in the same thread that calls send() on OutputChannel (or Protocol). Handler must return control as fast as possible, otherwise it may affect connection performance. Handler must not change channel in any way. Handler must not change message in any way. Handler must not throw any exceptions (catch all RuntimeExceptions).

Parameters:
channel - Output channel; on client side it is an upstream to server; on server side it is a downstream to connected client
message - The original Message instance being processed.

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.