public class HmuxWorker extends AbstractActorProcessor<Packet>
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getThreadName()
Returns the current thread name.
|
void |
onProcessComplete()
Called when all items in the queue are processed.
|
void |
process(Packet packet)
Sends a message to an agent
|
java.lang.String |
toString() |
onProcessStart
public java.lang.String getThreadName()
AbstractActorProcessor
getThreadName
in interface ActorProcessor<Packet>
getThreadName
in class AbstractActorProcessor<Packet>
public void process(Packet packet)
process
in interface ActorProcessor<Packet>
process
in class AbstractActorProcessor<Packet>
to
- the target agent's addressfrom
- the source agent's addressvalue
- the message payloadpublic void onProcessComplete() throws java.lang.Exception
AbstractActorProcessor
onProcessComplete
in interface ActorProcessor<Packet>
onProcessComplete
in class AbstractActorProcessor<Packet>
java.lang.Exception
public void close()
public java.lang.String toString()
toString
in class java.lang.Object