org.jsesoft.mmbi.samples
Interface ManagedResource

All Known Implementing Classes:
FullJavaBeansResource, PureResource

public interface ManagedResource

The common interface for all managed resources.

Author:
kwiedera2

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

LOW_WATER_MARK

static final long LOW_WATER_MARK
See Also:
Constant Field Values

HIGH_WATER_MARK

static final long HIGH_WATER_MARK
See Also:
Constant Field Values
Method Detail

getCount

long getCount()
Reads count attribute.

Returns:
the count

setCount

void setCount(long count)
              throws java.lang.Exception
Writes count attribute.

Parameters:
count - the new value of the count attribute.
Throws:
java.lang.Exception - on failure

incrementCount

void incrementCount()
                    throws java.lang.Exception
Increments count by one.

Throws:
java.lang.Exception - on failure

decrementCount

void decrementCount()
                    throws java.lang.Exception
Decrements count by one.

Throws:
java.lang.Exception - on failure

resetCount

void resetCount()
                throws java.lang.Exception
Resets count.

Throws:
java.lang.Exception - on failure


Copyright © 2010 JSESoft. All Rights Reserved.