Module org.snmp4j

Interface WorkerTask

All Superinterfaces:
Runnable
All Known Subinterfaces:
SchedulerTask
All Known Implementing Classes:
AbstractTransportServerThread, DefaultTcpTransportMapping.ServerThread, DefaultThreadFactory.WorkerThread, DefaultUdpTransportMapping.ListenThread

public interface WorkerTask extends Runnable
This models a WorkerTask instance that would be executed by a WorkerPool upon submission.
Since:
1.9
Version:
1.9
Author:
Frank Fock
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Interrupts this task.
    void
    Waits until this task has been finished.
    void
    The WorkerPool might call this method to hint the active WorkTask instance to complete execution as soon as possible.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • terminate

      void terminate()
      The WorkerPool might call this method to hint the active WorkTask instance to complete execution as soon as possible.
    • join

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

      void interrupt()
      Interrupts this task.
      See Also: