|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.oracle.sft.api.Agent<T>
T
- The type of application data in this Agent.public abstract class Agent<T>
Agent objects encapsulate application logic related to Communication artifacts such as Communication and Participant. An instance of the Agent class is attached to Communication artifacts by the application. This makes the Agent object available to any events pertaining to that Communication artifact.
Communication.addAgent(String, Agent)
, Communication.getAgent(String)
, Participant.addAgent(String, Agent)
, Participant.getAgent(String)
, Serialized FormConstructor Summary | |
---|---|
Agent() Default constructor for the Agent. |
|
Agent(boolean callbackEnabled) An application implementing an Agent can use this constructor to enable automatic callback on the Agent. |
Method Summary | |
---|---|
T |
get() Returns application specific data. |
CommunicationContext<?,?,?> |
getCommunicationContext() Retrieves the CommunicationContext object in the Application Link. |
void |
invoke() Invokes the agent to perform application specific tasks. |
void |
invoke(CommunicationEvent.Type cevent) Invokes the agent to perform application specific tasks. |
void |
invoke(ParticipantEvent.Type pvent) Invokes the agent to perform application specific tasks. |
boolean |
isCallbackEnabled() Gets the callback enabled flag. |
void |
set(T applicationData) Sets application specific data. |
void |
setCallbackEnabled(boolean callbackEnabled) Sets the callback enabled flag. |
void |
setCommunicationContext(CommunicationContext<?,?,?> context) Sets the CommunicationContext object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Agent()
public Agent(boolean callbackEnabled)
Communication
objects are selected for automatic callback by the framework.
callbackEnabled
-Method Detail |
---|
public boolean isCallbackEnabled()
public void setCallbackEnabled(boolean callbackEnabled)
callbackEnabled
- true of container has to callback.public final void setCommunicationContext(CommunicationContext<?,?,?> context)
context
- An instance of CommunicationContext object.public final CommunicationContext<?,?,?> getCommunicationContext()
public void invoke()
public void invoke(CommunicationEvent.Type cevent)
public void invoke(ParticipantEvent.Type pvent)
public final void set(T applicationData)
applicationData
- An Application Data object.public final T get()
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2012 Oracle Corporation. All Rights Reserved.