|
Oracle Fusion Middleware Oracle WebLogic SIP Server API Reference 11g Release 1 (10.3.4) Part Number E17873-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WlssSipSessionsUtil
(c) BEA Systems 2006
| Method Summary | |
|---|---|
java.lang.Object |
doAction(java.lang.String applicationSessionId,
WlssAction action)
This method allows a way to execute a WlssAction in a synchronous manner. |
void |
doAsynchronousAction(java.lang.String applicationSessionId,
WlssAsynchronousAction action)
This method allows an application to access a SipApplicationSession in an asynchronous manner. |
SipApplicationSession |
getApplicationSession(java.lang.String applicationSessionId,
long timeout,
java.util.concurrent.TimeUnit unit)
This method performs getSipApplicationSession but with the added timeout |
| Methods inherited from interface javax.servlet.sip.SipSessionsUtil |
|---|
getApplicationSessionById, getApplicationSessionByKey, getCorrespondingSipSession |
| Method Detail |
|---|
SipApplicationSession getApplicationSession(java.lang.String applicationSessionId,
long timeout,
java.util.concurrent.TimeUnit unit)
throws LockTimeoutException
applicationSessionId - sipapplicationsession idtimeout - timeoutunit - TimeUnit
LockTimeoutException - -
if the SipApplicationSession can't be retrived in
java.lang.Object doAction(java.lang.String applicationSessionId,
WlssAction action)
throws java.lang.Exception
applicationSessionId.
When this API is used by the applications, the container guarentees that
the business logic contained within the WlssAction will be executed with a
lock on the SipApplicationSession instance corresponding to the
applicationSessionId.
applicationSessionId - id of the SipApplicationSession that needs to
be updated in a transactional manner.action - WlssAction which is passed by the application
java.lang.IllegalArgumentException - if applicationSessionId or action parameters were null
or if callId could not be extracted from the applicationSessionId
java.lang.ExceptionWlssSipApplicationSession.doAction(com.bea.wcp.sip.WlssAction)
void doAsynchronousAction(java.lang.String applicationSessionId,
WlssAsynchronousAction action)
Example Usage:
SipApplicationSession appSession = ...;
appSession.doAsynchronousAction(new SipApplicationSessionAsynchronousWork() {
Serializable run(SipApplicationSession appSession) {
// add your business logic here
int counter = appSession.getAttribute("counter");
++ counter;
appSession.setAttribute("counter", counter);
return null;
}
});
action - the work to be done on this SipApplicationSession.
The run method of this object contains the work (business logic) to be performed.WlssAsynchronousAction,
WlssSipApplicationSession.doAsynchronousAction(com.bea.wcp.sip.WlssAsynchronousAction)
|
Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic SIP Server API Reference 11g Release 1 (10.3.4) Part Number E17873-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||