Class TimerThread.TimerRequest

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

private static class TimerThread.TimerRequest extends Object
Internal class associating a login or query timeout value with a target TimerListener.
  • Field Details

    • time

      final long time
      The time when this timeout will expire.
    • target

      Target to notify when the timeout expires.
  • Constructor Details

    • TimerRequest

      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:
      IllegalArgumentException - if the timeout is negative or 0