@Named @Singleton public class ProtobufConnector extends AbstractApiCollector
| Constructor and Description |
|---|
ProtobufConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
send(io.bitsensor.lib.entity.proto.Datapoint.Builder datapointBuilder) |
void |
setUri(String uri) |
void |
shutdown() |
getApiKey, getPoolSize, getQueue, getUri, getUsername, initialize, isInitialized, sendAsync, setApiKey, setPoolSize, setQueueSize, setup, setUsername, toString@Value(value="${bitsensor.uri}")
public void setUri(String uri)
setUri in interface ApiConnectorsetUri in class AbstractApiCollectorpublic void shutdown()
throws InterruptedException,
IOException
shutdown in interface ApiConnectorshutdown in class AbstractApiCollectorInterruptedExceptionIOExceptionpublic void send(io.bitsensor.lib.entity.proto.Datapoint.Builder datapointBuilder)
send in interface ApiConnectorsend in class AbstractApiCollectorCopyright © 2017 BitSensor. All rights reserved.