Package | Description |
---|---|
com.hazelcast.core |
Modifier and Type | Method and Description |
---|---|
void |
ISemaphore.acquire()
Acquires a permit, if one is available and returns immediately,
reducing the number of available permits by one.
|
void |
ISemaphore.acquire(int permits)
Acquires the given number of permits, if they are available,
and returns immediately, reducing the number of available permits
by the given amount.
|
void |
ISemaphore.acquireAttach()
Acquires and attaches a permit to the caller's address.
|
void |
ISemaphore.acquireAttach(int permits)
Acquires and attaches the given number of permits to the caller's
address.
|
void |
ICountDownLatch.await()
Causes the current thread to wait until the latch has counted down to
zero or an exception is thrown.
|
boolean |
ICountDownLatch.await(long timeout,
TimeUnit unit)
Causes the current thread to wait until the latch has counted down to
zero, an exception is thrown, or the specified waiting time elapses.
|
boolean |
ISemaphore.tryAcquire(int permits,
long timeout,
TimeUnit unit)
Acquires the given number of permits, if they are available and
returns immediately, with the value
true ,
reducing the number of available permits by the given amount. |
boolean |
ISemaphore.tryAcquire(long timeout,
TimeUnit unit)
Acquires a permit from this semaphore, if one becomes available
within the given waiting time and the current thread has not
been interrupted.
|
boolean |
ISemaphore.tryAcquireAttach(int permits,
long timeout,
TimeUnit unit)
Acquires the given number of permits from this semaphore and
attaches them to the calling member, only if all become available
within the given waiting time and the current thread has not
been interrupted or the instance
destroyed.
|
boolean |
ISemaphore.tryAcquireAttach(long timeout,
TimeUnit unit)
Acquires a permit from this semaphore and attaches it to the calling
member, only if one becomes available within the given waiting
time and the current thread has not been interrupted
or the instance destroyed.
|
Copyright © 2008-2013 Hazelcast, Inc. All Rights Reserved.