EventGeneratingActions are {@link ManagerAction}s that don't return their response in the corresponding {@link ManagerResponse} but send aseries of events that contain the payload.
This method will block until the correpsonding action complete event has been received. The action complete event is determined by {@link EventGeneratingAction#getActionCompleteEventClass()}.
Examples for EventGeneratingActions are {@link org.asteriskjava.manager.action.StatusAction}, {@link org.asteriskjava.manager.action.QueueStatusAction} or{@link org.asteriskjava.manager.action.AgentsAction}.
@param action the action to send to the Asterisk server
@return a ResponseEvents that contains the corresponding response andresponse events received from the Asterisk server
@throws IOException if the network connection is disrupted.
@throws EventTimeoutException if no response or not all response eventsare received within the given timeout period.
@throws IllegalArgumentException if the action is null
,the actionCompleteEventClass property of the action is null
or if actionCompleteEventClass is not a ResponseEvent.
@throws IllegalStateException if you are not connected to an Asteriskserver.
@see EventGeneratingAction
@see org.asteriskjava.manager.event.ResponseEvent
@since 0.2
|
|
|
|