|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WlssSipApplicationSession
This interface is an extension of the standard SipApplicationSession interface.
javax.servlet.sip.SipApplicationSession, WlssAction| Nested Class Summary | |
|---|---|
static class |
WlssSipApplicationSession.PersistenceTypeUsed by setPersist( com.bea.wcp.sip.WlssSipApplicationSession.PersistenceType, boolean). |
| Method Summary | |
|---|---|
java.lang.Object |
doAction(WlssAction action)This methods executes WlssTask in a transactional manner. |
void |
doAsynchronousAction(WlssAsynchronousAction asyncWork)This method allows an application to access a SipApplicationSession in an asynchronous manner. |
byte |
getGeoSiteId()The site identifier. |
void |
setPersist(WlssSipApplicationSession.PersistenceType type, boolean value)This method can be used to override the default call-state persistence characteristics. |
| Method Detail |
|---|
java.lang.Object doAction(WlssAction action)
throws java.lang.Exception
Example usage:
SipApplicationSession appSession = ...;
WlssSipApplicationSession wlssAppSession = (WlssSipApplicationSession) appSession;
wlssAppSession.doAction(new WlssAction() {
public Object run() throws Exception {
// add your business logic here
appSession.setAttribute("counter", latestCounterValue);
sipSession.setAttribute("currentState", latestAppState);
// The container will make sure that the run method will be invoked
// the with appSession locked
return null;
}
});
action - WlssAction which is passed by the applicationjava.lang.Exception - - propagates the Exception thrown by the run methodvoid doAsynchronousAction(WlssAsynchronousAction asyncWork)
Example Usage:
<p/>
SipApplicationSession appSession = ...;
appSession.doAsynchronousAction(new WlssAsynchronousAction() {
void run(SipApplicationSession appSession) {
// add your business logic here
int counter = appSession.getAttribute("counter");
++ counter;
appSession.setAttribute("counter", counter);
}
});
asyncWork - the work to be done on this SipApplicationSession. The run method of this object contains the work (business logic) to be performed.WlssAsynchronousAction
void setPersist(WlssSipApplicationSession.PersistenceType type,
boolean value)
This method can be used to override the default call-state persistence characteristics.
type - DATABASE denotes that the state should be saved to database by the datatier to save RAM space. GEO_REDUNDANCY indicates that the state should be replicated to the remote site.value - whether or not to enable the action.byte getGeoSiteId()
|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||