java.lang.Object
org.snmp4j.transport.DummyTransport.QueueProcessor
- All Implemented Interfaces:
Runnable,WorkerTask
- Enclosing class:
DummyTransport<A extends IpAddress>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Queue<DummyTransport<A>.MessageContainer> private booleanprivate AbstractTransportMapping<A> -
Constructor Summary
ConstructorsConstructorDescriptionQueueProcessor(Queue<DummyTransport<A>.MessageContainer> queue, AbstractTransportMapping<A> tm) -
Method Summary
-
Field Details
-
stop
private volatile boolean stop -
queue
-
tm
-
-
Constructor Details
-
QueueProcessor
public QueueProcessor(Queue<DummyTransport<A>.MessageContainer> queue, AbstractTransportMapping<A> tm)
-
-
Method Details
-
run
public void run() -
terminate
public void terminate()Description copied from interface:WorkerTaskTheWorkerPoolmight call this method to hint the activeWorkTaskinstance to complete execution as soon as possible.- Specified by:
terminatein interfaceWorkerTask
-
join
Description copied from interface:WorkerTaskWaits until this task has been finished.- Specified by:
joinin interfaceWorkerTask- Throws:
InterruptedException- if the join has been interrupted by another thread.
-
interrupt
public void interrupt()Description copied from interface:WorkerTaskInterrupts this task.- Specified by:
interruptin interfaceWorkerTask- See Also:
-