public final class NonBlockingDispatcher extends java.lang.Object implements TransmissionDispatcher
TransmissionDispatcher
Basically, the class tries to find one TransmissionOutput
that will accept the incoming Transmission
.
It is a non blocking behavior in the sense that if no one can accept it will drop the data
Created by gupele on 12/18/2014.Constructor and Description |
---|
NonBlockingDispatcher(TransmissionOutput[] transmissionOutputs) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(Transmission transmission) |
void |
stop(long timeout,
java.util.concurrent.TimeUnit timeUnit) |
public NonBlockingDispatcher(TransmissionOutput[] transmissionOutputs)
public void dispatch(Transmission transmission)
dispatch
in interface TransmissionDispatcher
public void stop(long timeout, java.util.concurrent.TimeUnit timeUnit)
stop
in interface TransmissionDispatcher