Package net.sourceforge.jtds.util
Class TimerThread.TimerRequest
java.lang.Object
net.sourceforge.jtds.util.TimerThread.TimerRequest
- Enclosing class:
TimerThread
Internal class associating a login or query timeout value with a target
TimerListener
.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final TimerThread.TimerListener
Target to notify when the timeout expires.(package private) final long
The time when this timeout will expire. -
Constructor Summary
ConstructorsConstructorDescriptionTimerRequest
(int timeout, TimerThread.TimerListener target) Create aTimerRequest
. -
Method Summary
-
Field Details
-
time
final long timeThe time when this timeout will expire. -
target
Target to notify when the timeout expires.
-
-
Constructor Details
-
TimerRequest
TimerRequest(int timeout, TimerThread.TimerListener target) Create aTimerRequest
.- Parameters:
timeout
- the desired timeout in millisecondstarget
- the target object; one ofSharedSocket
orTdsCore
- Throws:
IllegalArgumentException
- if the timeout is negative or 0
-