JSR-043: JTAPI-1.4

javax.telephony.media.async
Interface Async.ResourceEvent

All Superinterfaces:
Async.Event, Async.MediaServiceEvent, MediaConstants, MediaEvent, MediaServiceConstants, MediaServiceEvent, ResourceConstants, ResourceEvent
All Known Subinterfaces:
Async_ASREvent, Async_PlayerEvent, Async_RecorderEvent, Async_SignalDetectorEvent, Async_SignalGeneratorEvent
All Known Implementing Classes:
Base.ResourceEvent
Enclosing class:
Async

public static interface Async.ResourceEvent
extends Async.MediaServiceEvent, ResourceEvent

Extends ResourceEvent to include asynchronous event methods.

The MediaEvent methods (getEventID(), getMediaService()) immediately return the requested values.

The implementation of the other Resource.Event accessors (getQualifier(), getRTCTrigger(), and getError()) wait for the event to complete, then return the requested value. If you do not want to wait, then test first using isDone() to see if the event is complete.


Fields inherited from interface javax.telephony.media.MediaServiceConstants
ev_BindAndConnect, ev_BindToCall, ev_BindToServiceName, ev_BindToTerminal, ev_BindToTerminalName, ev_Configure, ev_Connected, ev_DelegateToService, ev_Disconnected, ev_GetConfigSpec, ev_GetConfiguration, ev_GetParameters, ev_GetTerminal, ev_GetTerminalName, ev_GetUserValues, ev_GroupStop, ev_Release, ev_ReleaseDelegated, ev_ReleaseToDestroy, ev_ReleaseToService, ev_ReleaseToTag, ev_Retrieve, ev_Retrieved, ev_SetParameters, ev_SetUserDictionary, ev_SetUserValues, ev_TerminalIdle, ev_TriggerRTC
 
Fields inherited from interface javax.telephony.media.MediaConstants
e_OK, q_Duration, q_Standard, q_Stop
 
Fields inherited from interface javax.telephony.media.ResourceConstants
e_Disconnected, FOREVER, q_Disconnected, q_RTC, rtcc_Disconnected, rtcc_TriggerRTC, v_Forever
 
Method Summary
 void throwIfMediaResourceException()
          Detect and throw MediaResourceExceptions and RuntimeExceptions contained in the Event.
 
Methods inherited from interface javax.telephony.media.async.Async.Event
isDone, throwIfRuntimeException, waitForEventDone, waitForEventDone, waitForListenersDone
 
Methods inherited from interface javax.telephony.media.MediaEvent
getError, getEventID, getException, getPayload, getQualifier, getSubError, getWarning
 
Methods inherited from interface javax.telephony.media.MediaServiceEvent
getMediaService
 
Methods inherited from interface javax.telephony.media.ResourceEvent
getRTCTrigger
 

Method Detail

throwIfMediaResourceException

public void throwIfMediaResourceException()
                                   throws MediaResourceException
Detect and throw MediaResourceExceptions and RuntimeExceptions contained in the Event.

Calls throwIfRuntimeException internally.

Throws:
MediaResourceException - if contained in this event

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org