public class AutoResetEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
WaitTimeout |
| Constructor and Description |
|---|
AutoResetEvent(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
boolean initialState) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check() |
void |
reset() |
void |
set() |
static boolean |
waitAll(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions) |
static boolean |
waitAll(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions,
long time,
TimeUnit unit) |
static int |
waitAny(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions) |
static int |
waitAny(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions,
long time,
TimeUnit unit) |
boolean |
waitOne() |
boolean |
waitOne(long time,
TimeUnit unit) |
public static final int WaitTimeout
public AutoResetEvent(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
boolean initialState)
public boolean check()
public void set()
public void reset()
public boolean waitOne()
throws InterruptedException
InterruptedExceptionpublic boolean waitOne(long time,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic static int waitAny(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions)
throws InterruptedException
InterruptedExceptionpublic static int waitAny(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions,
long time,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic static boolean waitAll(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions)
throws InterruptedException
InterruptedExceptionpublic static boolean waitAll(biz.onixs.util.concurrent.SingleConditionReentrantLock lock,
biz.onixs.util.concurrent.WaitHandle[] conditions,
long time,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2014–2025 Onix Solutions. All rights reserved.