Package net.sourceforge.jtds.util
Class TimerThread.TimerRequest
- java.lang.Object
-
- net.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 targetTimerListener
.
-
-
Field Summary
Fields Modifier and Type Field Description (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
Constructors Constructor Description TimerRequest(int timeout, TimerThread.TimerListener target)
Create aTimerRequest
.
-
-
-
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
-
TimerRequest
TimerRequest(int timeout, TimerThread.TimerListener target)
Create aTimerRequest
.- Parameters:
timeout
- the desired timeout in millisecondstarget
- the target object; one ofSharedSocket
orTdsCore
- Throws:
java.lang.IllegalArgumentException
- if the timeout is negative or 0
-
-