com.rocketsoftware.mvapi.pool
Class MVPoolWaiter

java.lang.Object
  extended by com.rocketsoftware.mvapi.pool.MVPoolWaiter

public class MVPoolWaiter
extends java.lang.Object

Maintains notify and wait mechanism for handling of connect requests waiting for checked in connections


Constructor Summary
MVPoolWaiter()
          Default constructor.
 
Method Summary
 boolean isClosing()
          Gets indicator for pool waiter is closing
 boolean isTimedOut()
          Gets indicator for pool waiter timed out
 void setIsClosing(boolean value)
          Sets indicator for pool waiter is closing
 void setIsTimedOut(boolean value)
          Sets indicator for pool waiter timed out
 boolean setNotify()
          Set notify to wake up pool waiter
 void waitForNotify(long maxWaitTime)
          Pool waiter waits to be notified
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVPoolWaiter

public MVPoolWaiter()
Default constructor.

Method Detail

isTimedOut

public boolean isTimedOut()
Gets indicator for pool waiter timed out

Returns:
boolean for pool waiter timed out

setIsTimedOut

public void setIsTimedOut(boolean value)
Sets indicator for pool waiter timed out

Parameters:
value - The flag for pool waiter timed out

isClosing

public boolean isClosing()
Gets indicator for pool waiter is closing

Returns:
boolean for pool waiter is closing

setIsClosing

public void setIsClosing(boolean value)
Sets indicator for pool waiter is closing

Parameters:
value - The flag for pool waiter is closing

setNotify

public boolean setNotify()
Set notify to wake up pool waiter

Returns:
boolean for pool waiter notified

waitForNotify

public void waitForNotify(long maxWaitTime)
Pool waiter waits to be notified

Parameters:
maxWaitTime - long for maximum time to wait to be notified