|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.env.meter.AbstractMeter
com.caucho.env.meter.SemaphoreMeter
public final class SemaphoreMeter
| Constructor Summary | |
|---|---|
SemaphoreMeter(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
acquire()
Acquire a resource from the semaphore. |
AbstractMeter |
createCount(java.lang.String name)
|
AbstractMeter |
createMax(java.lang.String name)
|
AbstractMeter |
createMin(java.lang.String name)
|
void |
release()
Free a resource |
double |
sample()
Return the probe's next average. |
double |
sampleCount()
Return the probe's next sample. |
double |
sampleMax()
Return the probe's next sample. |
double |
sampleMin()
Return the probe's next sample. |
| Methods inherited from class com.caucho.env.meter.AbstractMeter |
|---|
getName, peek, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SemaphoreMeter(java.lang.String name)
| Method Detail |
|---|
public AbstractMeter createCount(java.lang.String name)
public AbstractMeter createMin(java.lang.String name)
public AbstractMeter createMax(java.lang.String name)
public final void acquire()
SemaphoreSensor
acquire in interface SemaphoreSensorpublic final void release()
SemaphoreSensor
release in interface SemaphoreSensorpublic final double sample()
sample in interface Metersample in class AbstractMeterpublic final double sampleCount()
public final double sampleMax()
public final double sampleMin()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||