Module org.snmp4j
Package org.snmp4j.util
Class MultiThreadedMessageDispatcher.MessageTask<A extends Address>
java.lang.Object
org.snmp4j.util.MultiThreadedMessageDispatcher.MessageTask<A>
- All Implemented Interfaces:
Runnable,WorkerTask
- Enclosing class:
MultiThreadedMessageDispatcher
class MultiThreadedMessageDispatcher.MessageTask<A extends Address>
extends Object
implements WorkerTask
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Aprivate final TransportMapping<? super A> private final TransportStateReferenceprivate final ByteBuffer -
Constructor Summary
ConstructorsConstructorDescriptionMessageTask(TransportMapping<? super A> sourceTransport, A incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) -
Method Summary
-
Field Details
-
sourceTransport
-
incomingAddress
-
wholeMessage
-
tmStateReference
-
-
Constructor Details
-
MessageTask
public MessageTask(TransportMapping<? super A> sourceTransport, A incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference)
-
-
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:
-