org.freeswitch.esl.client
Interface IEslEventListener


public interface IEslEventListener

Interface for observers wanting to be notified of incoming FreeSWITCH Event Socket events.

Incoming events arrive asynchronously and are processed into two queues, one for server initiated events, and one for the results of client requested background jobs.

Each queue is serviced by a different thread pool (to ensure lowest latency for event-driven events) and each queue is guaranteed to be processed (and listeners notified) in the order in which the events are received off the wire.

This design ensures that incoming event processing is not blocked by any long-running listener process. However multiple listeners will be notified sequentially, and so one slow listener can cause latency to other listeners.

Author:
david varnes

Method Summary
 void backgroundJobResultReceived(EslEvent event)
          Signal of an event containing the result of a client requested background job.
 void eventReceived(EslEvent event)
          Signal of a server initiated event.
 

Method Detail

eventReceived

void eventReceived(EslEvent event)
Signal of a server initiated event.

Parameters:
event - as an EslEvent

backgroundJobResultReceived

void backgroundJobResultReceived(EslEvent event)
Signal of an event containing the result of a client requested background job. The Job-UUID will be available as an event header of that name.

Parameters:
event - as an EslEvent


Copyright © 2009-2010 david varnes. All Rights Reserved.