net.sf.asterisk.manager
Interface Dispatcher

All Known Implementing Classes:
DefaultManagerConnection

public interface Dispatcher

The Dispatcher defines the interface used for communication between ManagerConnection and ManagerReader.
Do not use this interface in your code, it is intended to be used only by the DefaultManagerConnection and its ManagerReader.

Version:
$Id: Dispatcher.java,v 1.2 2005/10/25 22:49:56 srt Exp $
Author:
srt

Method Summary
 void dispatchEvent(ManagerEvent event)
          This method is called by the reader whenever a ManagerEvent is received.
 void dispatchResponse(ManagerResponse response)
          This method is called by the reader whenever a ManagerResponse is received.
 

Method Detail

dispatchResponse

void dispatchResponse(ManagerResponse response)
This method is called by the reader whenever a ManagerResponse is received. The response is dispatched to the associated ManagerResponseHandler.

Parameters:
response - the resonse received by the reader
See Also:
ManagerReader

dispatchEvent

void dispatchEvent(ManagerEvent event)
This method is called by the reader whenever a ManagerEvent is received. The event is dispatched to all registered ManagerEventHandlers.

Parameters:
event - the event received by the reader
See Also:
ManagerReader


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.