Class DefaultUdpTransportMapping.ListenThread

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

protected class DefaultUdpTransportMapping.ListenThread extends Object implements WorkerTask
Version:
1.9
Author:
Frank Fock
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Interrupts this task.
    void
    Waits until this task has been finished.
    boolean
    join(long timeout)
    Waits until this task has been finished or the specified timeout has elapsed.
    void
    run()
     
    void
    Gracefully shuts down this task.
    void
    The WorkerPool might call this method to hint the active WorkTask instance to complete execution as soon as possible.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

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

      public void close()
    • shutdown

      public void shutdown()
      Description copied from interface: WorkerTask
      Gracefully shuts down this task. All pending operations should be finished, but no new operations should be accepted.
      Specified by:
      shutdown in interface WorkerTask
    • terminate

      public void terminate()
      Description copied from interface: WorkerTask
      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
      Description copied from interface: WorkerTask
      Waits until this task has been finished.
      Specified by:
      join in interface WorkerTask
      Throws:
      InterruptedException - if the join has been interrupted by another thread.
    • join

      public boolean join(long timeout) throws InterruptedException
      Description copied from interface: WorkerTask
      Waits until this task has been finished or the specified timeout has elapsed.
      Specified by:
      join in interface WorkerTask
      Parameters:
      timeout - the maximum time to wait in milliseconds.
      Returns:
      true if the task has been finished, false otherwise.
      Throws:
      InterruptedException - if the join has been interrupted by another thread.
    • interrupt

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