|
Sun Adapter for IMS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.eways.ims.IMSClientRequestController
public class IMSClientRequestController
Constructor Summary | |
---|---|
IMSClientRequestController()
|
Method Summary | |
---|---|
static boolean |
acquireLock(java.lang.String clientID,
long waitTimeout)
Acquires lock before processing IMS request using the supplied client ID. |
static void |
releaseLock(java.lang.String clientID)
Release acquired lock from previous call to acquireLock to acquire the lock for the supplied client ID.Also, notify any possible waiting thread that is waiting for the lock on that client ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IMSClientRequestController()
Method Detail |
---|
public static boolean acquireLock(java.lang.String clientID, long waitTimeout) throws java.lang.Exception
clientID
- String The IMS client ID to use to create and/or acquire
the lock. This is so that the same client ID
used by multiple connects for multiple requests
can be serialized.waitTimeout
- long The timeout in milliseconds to wait for the lock
if the lock was already obtained by some other
thread.
java.lang.Exception
- If failed to wait for the lock.public static void releaseLock(java.lang.String clientID) throws java.lang.Exception
clientID
- String The client ID lock to release.
java.lang.Exception
- If no lock is has been created for the client ID.
|
Sun Adapter for IMS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |