Module org.snmp4j

Class DTLSTM.HandshakeTask

java.lang.Object
org.snmp4j.transport.DTLSTM.HandshakeTask
All Implemented Interfaces:
Runnable, WorkerTask
Enclosing class:
DTLSTM

class DTLSTM.HandshakeTask extends Object implements WorkerTask
  • Field Details

    • endLoops

      private boolean endLoops
    • joinLock

      private final Object joinLock
    • socketEntry

      private final DTLSTM.SocketEntry socketEntry
    • socket

      private final DatagramSocket socket
    • peerAddr

      private final SocketAddress peerAddr
    • receivedPacket

      private final DatagramPacket receivedPacket
    • handshakeTimeout

      private final long handshakeTimeout
    • maxRetries

      private final int maxRetries
    • retries

      private int retries
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • stopLoops

      private void stopLoops()
    • terminate

      public void terminate()
      The WorkerPool might call this method to hint the active WorkTask instance to complete execution as soon as possible.
      Specified by:
      terminate in interface WorkerTask
    • join

      public void join() throws InterruptedException
      Waits until this task has been finished.
      Specified by:
      join in interface WorkerTask
      Throws:
      InterruptedException - if the join has been interrupted by another thread.
    • interrupt

      public void interrupt()
      Interrupts this task.
      Specified by:
      interrupt in interface WorkerTask
      See Also: