org.apache.commons.performance.pool
Class Waiter

java.lang.Object
  extended by org.apache.commons.performance.pool.Waiter

public class Waiter
extends Object

Object created by WaiterFactory. Maintains active / valid state.


Constructor Summary
Waiter(boolean active, boolean valid, long latency)
           
 
Method Summary
 void doWait()
           
 long getLatency()
           
 boolean isActive()
           
 boolean isValid()
           
 void setActive(boolean active)
           
 void setLatency(long latency)
           
 void setValid(boolean valid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Waiter

public Waiter(boolean active,
              boolean valid,
              long latency)
Method Detail

doWait

public void doWait()

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

getLatency

public long getLatency()

setLatency

public void setLatency(long latency)

isValid

public boolean isValid()

setValid

public void setValid(boolean valid)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.