javax.telephony.media.provider
Class Base.DelegatedEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.telephony.media.provider.EventObject
|
+--javax.telephony.media.provider.Base.Event
|
+--javax.telephony.media.provider.Base.MediaServiceEvent
|
+--javax.telephony.media.provider.Base.DelegatedEvent
- All Implemented Interfaces:
- Async.Event, DelegationConstants, Dispatcher.DispatchableEvent, MediaConstants, MediaEvent, MediaServiceConstants, MediaServiceEvent, java.io.Serializable
- Enclosing class:
- Base
- public static class Base.DelegatedEvent
- extends Base.MediaServiceEvent
- implements DelegationConstants
Specialization of MediaServiceEvent for ev_Delegated.
dispatches to DelegationListener.onDelegated.
- See Also:
- Serialized Form
Fields inherited from interface javax.telephony.media.DelegationConstants |
ev_Delegated, q_Released, q_Removed, q_Retrieved, q_Returned, tag_CatchAll, tag_CatchNone, tag_DestroyRequest, tag_NeverReturn, tag_NormalReturn, tag_RemoveSession, tag_SessionDeath, v_Released |
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 |
Constructor Summary |
Base.DelegatedEvent(java.lang.Object source)
Create this [non-transactional] Event already done. |
Base.DelegatedEvent(java.lang.Object source,
Symbol eventID,
java.lang.Exception ex)
Create this [non-transactional] Event already done. |
Method Summary |
void |
dispatch(java.util.EventListener listener)
Invoke the appropriate callback method on the appropriate Listener. |
Methods inherited from class javax.telephony.media.provider.Base.Event |
done, getError, getEventID, getException, getPayload, getQualifier, getSubError, getWarning, isDone, setError, setFields, setFields, setPayload, setQualifier, setSubError, throwIfRuntimeException, toString, waitForEventDone, waitForEventDone, waitForListenersDone |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Base.DelegatedEvent
public Base.DelegatedEvent(java.lang.Object source,
Symbol eventID,
java.lang.Exception ex)
- Create this [non-transactional] Event already done.
Immediately invokes onEventDone() and queues for delivery.
- Parameters:
source
- the Owner MediaService to which event is delivered.eventID
- the Symbol ev_Delegatedex
- an Exception; should be null
(this event is not returned to sync methods).
Base.DelegatedEvent
public Base.DelegatedEvent(java.lang.Object source)
- Create this [non-transactional] Event already done.
Immediately invokes onEventDone() and queues for delivery.
eventID is set to ev_Delegated
exception is set to null
- Parameters:
source
- the Owner MediaService to which event is delivered.
(this event is not returned to sync methods).
dispatch
public void dispatch(java.util.EventListener listener)
- Description copied from class:
Base.Event
- Invoke the appropriate callback method on the appropriate Listener.
Each sub-class must define an EventListener and callback method
by supplying this method.
Implements Dispatcher.DispatchableEvent
Typically, Async.SomeEvent dispatches to like this:
public void dispatch(EventListener listener) {
if (listener instanceof Async.SomeListener)
((Async.SomeListener)listener).onSomeDone(this);
}
Invoked by Base_MediaService
- Overrides:
dispatch
in class Base.Event
- Following copied from class:
javax.telephony.media.provider.Base.Event
- Parameters:
listener
- an EventListener, some kind of MediaListener.
Send comments to: JSR-43@ectf.org