public interface TelemetriesTransmitter
Telemetry
,
transform them into Transmission
and
then initiate the sending process.
Containers of Telemetry instances are populated by application threads. This class use
the 'channel's' threads for the rest of the process. In other words, the de-coupling of
user and channel threads happens here.
The class lets its users to schedule a 'send', where a channel thread will be sent to 'pick up'
the container of Telemetries.
Or, it also lets the caller to initiate a 'send now' call where the caller passes the container
and this class will continue, again, using a channel thread while releasing the calling thread.
Created by gupele on 12/17/2014.Modifier and Type | Interface and Description |
---|---|
static interface |
TelemetriesTransmitter.TelemetriesFetcher |
Modifier and Type | Method and Description |
---|---|
boolean |
scheduleSend(TelemetriesTransmitter.TelemetriesFetcher telemetriesFetcher,
long value,
java.util.concurrent.TimeUnit timeUnit) |
boolean |
sendNow(java.util.Collection<java.lang.String> telemetries) |
void |
stop(long timeout,
java.util.concurrent.TimeUnit timeUnit) |
boolean scheduleSend(TelemetriesTransmitter.TelemetriesFetcher telemetriesFetcher, long value, java.util.concurrent.TimeUnit timeUnit)
boolean sendNow(java.util.Collection<java.lang.String> telemetries)
void stop(long timeout, java.util.concurrent.TimeUnit timeUnit)