Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for IMS API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.stc.eways.ims
Class IMSClientRequestSynchronizer

    java.lang.Object
      com.stc.eways.ims.IMSClientRequestSynchronizer

    public class IMSClientRequestSynchronizer

extends java.lang.Object

Constructor Summary
`IMSClientRequestSynchronizer()` Default constructor

Method Summary
`boolean` | `acquire(long waitTimeout)` Try to acquire a lock if lock is not available then wait for it.
`boolean` | `isWaiting()` Determines whether there are any thread(s) waiting for the lock.
`void` | `release()` Release acquired lock from previous call to acquire.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### IMSClientRequestSynchronizer

    public IMSClientRequestSynchronizer()

  Default constructor

Method Detail

### acquire

    public boolean acquire(long waitTimeout)
                    throws java.lang.Exception

  Try to acquire a lock if lock is not available then wait for it.

  Parameters:
    `waitTimeout` - long Number of msecs to wait for the lock if it's not available.
  Throws:
    `java.lang.Exception` - If failed to wait for the lock.

### release

    public void release()

  Release acquired lock from previous call to acquire. Also, notify any possible waiting thread that is waiting for the lock.

### isWaiting

    public boolean isWaiting()

  Determines whether there are any thread(s) waiting for the lock.

  Returns:
    If there are any waiting threads true will be returned; false is returned otherwise.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for IMS API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD