public interface ConditionCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
await(String name,
long threadId,
long timeout,
String lockName)
Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses.
|
void |
beforeAwait(String name,
long threadId,
String lockName)
Causes the current thread to wait until it is signalled or Thread#interrupt interrupted.
|
void |
signal(String name,
long threadId,
String lockName)
If any threads are waiting on this condition then one is selected for waking up.That thread must then re-acquire
the lock before returning from await.
|
void |
signalAll(String name,
long threadId,
String lockName)
If any threads are waiting on this condition then they are all woken up.
|
Object await(String name, long threadId, long timeout, String lockName)
name
- Name of the ConditionthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.timeout
- The maximum time to waitlockName
- Name of the lock to wait on.void beforeAwait(String name, long threadId, String lockName)
name
- Name of the ConditionthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.lockName
- Name of the lock to wait on.void signal(String name, long threadId, String lockName)
name
- Name of the ConditionthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.lockName
- Name of the lock to wait on.void signalAll(String name, long threadId, String lockName)
name
- Name of the ConditionthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.lockName
- Name of the lock to wait on.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.