org.snmp4j.util
Interface WorkerTask

All Superinterfaces:
java.lang.Runnable
All Known Subinterfaces:
SchedulerTask
All Known Implementing Classes:
DefaultThreadFactory.WorkerThread

public interface WorkerTask
extends java.lang.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
 void interrupt()
          Interrupts this task.
 void join()
          Waits until this task has been finished.
 void terminate()
          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 Detail

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 java.lang.InterruptedException
Waits until this task has been finished.

Throws:
java.lang.InterruptedException

interrupt

void interrupt()
Interrupts this task.

See Also:
Thread.interrupt()

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.