public class NopTelemetryChannel extends java.lang.Object implements TelemetryChannel
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flushes the data that the channel might have internally.
|
static NopTelemetryChannel |
instance() |
boolean |
isDeveloperMode()
Gets value indicating whether this channel is in developer mode.
|
void |
send(Telemetry item)
Sends a Telemetry instance through the channel.
|
void |
setDeveloperMode(boolean value)
Sets value indicating whether this channel is in developer mode.
|
void |
setSampler(TelemetrySampler telemetrySampler)
Sets an optional Sampler that can sample out telemetries
|
void |
stop(long timeout,
java.util.concurrent.TimeUnit timeUnit)
Stops on going work
|
public static NopTelemetryChannel instance()
public boolean isDeveloperMode()
TelemetryChannel
isDeveloperMode
in interface TelemetryChannel
public void setDeveloperMode(boolean value)
TelemetryChannel
setDeveloperMode
in interface TelemetryChannel
value
- True for applying develoer modepublic void send(Telemetry item)
TelemetryChannel
send
in interface TelemetryChannel
item
- The Telemetry item to send.public void stop(long timeout, java.util.concurrent.TimeUnit timeUnit)
TelemetryChannel
stop
in interface TelemetryChannel
timeout
- Time to try and stoptimeUnit
- The units of the 'timeout' parameterpublic void flush()
TelemetryChannel
flush
in interface TelemetryChannel
public void setSampler(TelemetrySampler telemetrySampler)
TelemetryChannel
setSampler
in interface TelemetryChannel
telemetrySampler
- - The sampler