Class 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

      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.
    • Method Summary

      • 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.
    • Constructor Detail

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