|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedResource
The common interface for all managed resources.
Field Summary | |
---|---|
static long |
HIGH_WATER_MARK
|
static long |
LOW_WATER_MARK
|
Method Summary | |
---|---|
void |
decrementCount()
Decrements count by one. |
long |
getCount()
Reads count attribute. |
void |
incrementCount()
Increments count by one. |
void |
resetCount()
Resets count. |
void |
setCount(long count)
Writes count attribute. |
Field Detail |
---|
static final long LOW_WATER_MARK
static final long HIGH_WATER_MARK
Method Detail |
---|
long getCount()
void setCount(long count) throws java.lang.Exception
count
- the new value of the count attribute.
java.lang.Exception
- on failurevoid incrementCount() throws java.lang.Exception
java.lang.Exception
- on failurevoid decrementCount() throws java.lang.Exception
java.lang.Exception
- on failurevoid resetCount() throws java.lang.Exception
java.lang.Exception
- on failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |