javapool.util
Class PoolObjectProperties

java.lang.Object
  |
  +--javapool.util.PoolObjectProperties

public class PoolObjectProperties
extends java.lang.Object

Used to maintain a pool objects properties


Constructor Summary
PoolObjectProperties()
          Constructor will record the time this object was created.
 
Method Summary
 void checkIn()
          Makes changes to properties to reflect a not busy status
 void checkOut()
          Makes changes to properties to reflect a busy status
 long getCreationTime()
          Get the time (in millisecods) when this object was created.
 int getDeadPingCount()
          Returns the current value of the ping dead counter for a pool object.
 long getLastIssueTime()
          Returns the time when the Pool Object was issued.
 long getLastPingTime()
          Returns the time when the object was last pinged.
 void incDeadPingCount()
          Increments ping dead counter for a pool object.
 boolean isBusy()
          Returns the status of the object.
 void resetDeadPingCount()
          Reset the value of the pind dead counter for a pool object.
 void setLastPingTime()
          Sets the lastPingTime variable to the current time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolObjectProperties

public PoolObjectProperties()
Constructor will record the time this object was created.
Method Detail

getCreationTime

public long getCreationTime()
Get the time (in millisecods) when this object was created.

isBusy

public boolean isBusy()
Returns the status of the object. If true then the object is checked out, if not it is available.

checkOut

public void checkOut()
Makes changes to properties to reflect a busy status

checkIn

public void checkIn()
Makes changes to properties to reflect a not busy status

getLastIssueTime

public long getLastIssueTime()
Returns the time when the Pool Object was issued.

incDeadPingCount

public void incDeadPingCount()
Increments ping dead counter for a pool object.

getDeadPingCount

public int getDeadPingCount()
Returns the current value of the ping dead counter for a pool object.

resetDeadPingCount

public void resetDeadPingCount()
Reset the value of the pind dead counter for a pool object.

setLastPingTime

public void setLastPingTime()
Sets the lastPingTime variable to the current time.

getLastPingTime

public long getLastPingTime()
Returns the time when the object was last pinged.