@Named @Singleton public class BitSensorConnector extends AbstractApiCollector
| Constructor and Description |
|---|
BitSensorConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
send(io.bitsensor.lib.entity.proto.Datapoint.Builder datapointBuilder)
Sends a
Datapoint to the BitSensor servers. |
void |
shutdown() |
getApikey, getHost, getPoolSize, getQueue, getUsername, initialize, isInitialized, sendAsync, setApikey, setHost, setPoolSize, setQueueSize, setup, setUsername, toStringpublic void send(io.bitsensor.lib.entity.proto.Datapoint.Builder datapointBuilder)
Datapoint to the BitSensor servers.send in interface ApiConnectorsend in class AbstractApiCollectordatapointBuilder - The DataPoint to send.public void shutdown()
throws InterruptedException,
IOException
shutdown in interface ApiConnectorshutdown in class AbstractApiCollectorInterruptedExceptionIOExceptionCopyright © 2018 BitSensor. All rights reserved.