java.lang.Runnable
SchedulerTask
AbstractTcpServerThread
, DefaultTcpTransportMapping.ServerThread
, DefaultThreadFactory.WorkerThread
public interface WorkerTask
extends java.lang.Runnable
WorkerTask
instance that would be executed by a
WorkerPool
upon submission.Modifier and Type | Method | Description |
---|---|---|
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. |
void terminate()
WorkerPool
might call this method to hint the active
WorkTask
instance to complete execution as soon as possible.void join() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the join has been interrupted by another thread.void interrupt()
Thread.interrupt()
Copyright © 2018 SNMP4J.org. All rights reserved.