net.sourceforge.jtds.util
Class TimerThread.TimerRequest

java.lang.Object
  extended bynet.sourceforge.jtds.util.TimerThread.TimerRequest
Enclosing class:
TimerThread

private static class TimerThread.TimerRequest
extends java.lang.Object

Internal class associating a login or query timeout value with a target TimerListener.


Field Summary
(package private)  TimerThread.TimerListener target
          Target to notify when the timeout expires.
(package private)  long time
          The time when this timeout will expire.
 
Constructor Summary
(package private) TimerThread.TimerRequest(int timeout, TimerThread.TimerListener target)
          Create a TimerRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

final long time
The time when this timeout will expire.


target

final TimerThread.TimerListener target
Target to notify when the timeout expires.

Constructor Detail

TimerThread.TimerRequest

TimerThread.TimerRequest(int timeout,
                         TimerThread.TimerListener target)
Create a TimerRequest.

Parameters:
timeout - the desired timeout in milliseconds
target - the target object; one of SharedSocket or TdsCore
Throws:
java.lang.IllegalArgumentException - if the timeout is negative or 0


Generated on October 27 2012