public class ManualResetEvent extends Object
Modifier and Type | Field and Description |
---|---|
static int |
WaitTimeout |
Constructor and Description |
---|
ManualResetEvent(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 ManualResetEvent(biz.onixs.util.concurrent.SingleConditionReentrantLock lock, boolean initialState)
public boolean check()
public void set()
public void reset()
public boolean waitOne() throws InterruptedException
InterruptedException
public boolean waitOne(long time, TimeUnit unit) throws InterruptedException
InterruptedException
public static int waitAny(biz.onixs.util.concurrent.SingleConditionReentrantLock lock, biz.onixs.util.concurrent.WaitHandle[] conditions) throws InterruptedException
InterruptedException
public static int waitAny(biz.onixs.util.concurrent.SingleConditionReentrantLock lock, biz.onixs.util.concurrent.WaitHandle[] conditions, long time, TimeUnit unit) throws InterruptedException
InterruptedException
public static boolean waitAll(biz.onixs.util.concurrent.SingleConditionReentrantLock lock, biz.onixs.util.concurrent.WaitHandle[] conditions) throws InterruptedException
InterruptedException
public static boolean waitAll(biz.onixs.util.concurrent.SingleConditionReentrantLock lock, biz.onixs.util.concurrent.WaitHandle[] conditions, long time, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2005–2024 Onix Solutions. All rights reserved.