public class SynchronizedLimitedInt extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
destroyed |
protected int |
limit_ |
protected Object |
lock_ |
protected int |
value_ |
| Constructor and Description |
|---|
SynchronizedLimitedInt(int initialValue,
int limit)
Make a new SynchronizedLimitedInt with the given initial value,
and using its own internal lock.
|
SynchronizedLimitedInt(int initialValue,
int limit,
Object lock)
Make a new SynchronizedLimitedInt with the given initial value,
and using the supplied lock.
|
| Modifier and Type | Method and Description |
|---|---|
int |
decrement()
Decrement the value.
|
void |
destroy()
Destroy this instance - wakeup and disable all sync waits.
|
int |
get()
Return the current value
|
int |
increment()
Increment the value.
|
int |
increment(boolean doNotBlock)
Increment the value.
|
String |
toString() |
protected int value_
protected int limit_
protected final Object lock_
protected boolean destroyed
public SynchronizedLimitedInt(int initialValue,
int limit)
public SynchronizedLimitedInt(int initialValue,
int limit,
Object lock)
public final int get()
public int increment()
public int increment(boolean doNotBlock)
public int decrement()
public void destroy()
Copyright © 2004-2020 EPICS. All Rights Reserved.