public class ClientImpl extends Object implements Client
| Modifier and Type | Field and Description |
|---|---|
protected Admin |
admin |
protected static Class<Admin> |
adminClass |
protected TqClient |
tqClient |
| Constructor and Description |
|---|
ClientImpl(String host,
Integer port,
Boolean secure,
String userToken,
String apiKey) |
public String getHost()
public int getPort()
public Boolean getSecure()
protected String getAuthMethod()
protected String getDataFormat()
protected String getSdkVersion()
protected void stopPingLoop()
protected void registerConsumer(ConsumerImpl consumer)
protected void registerProducer(ProducerImpl producer)
protected void removeConsumer(ConsumerImpl consumer)
protected void removeProducer(ProducerImpl producer)
public CompletableFuture<Void> registerConsumerBroker(ConsumerImpl consumer)
public CompletableFuture<Void> registerProducerBroker(ProducerImpl producer)
public Properties getVersionInfo()
protected void checkState(String desc)
public CompletableFuture<Client> connect() throws Exception
protected void clientToBrokerOnNext(com.turtlequeue.sdk.api.proto.Tq.ClientToBroker cmd)
public io.grpc.ConnectivityState getConnState()
public long getNextRequestId()
public long getNextConsumerId()
public long getNextProducerId()
public ConsumerBuilder newConsumer()
newConsumer in interface Clientpublic ProducerBuilder newProducer()
newProducer in interface Clientpublic ReaderBuilder newReader()
public AcknowledgeBuilder newAcknowledge()
newAcknowledge in interface Clientprotected <T> CompletableFuture<T> consumerCommand(com.turtlequeue.sdk.api.proto.Tq.CommandConsumer commandConsumer)
protected <T> CompletableFuture<T> producerCommand(com.turtlequeue.sdk.api.proto.Tq.CommandProducer commandProducer)
protected static void registerAdmin(Class a)
public TopicBuilderImpl newTopicBuilder()
newTopicBuilder in interface Clientprotected String getUserToken()
protected String getApiKey()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2019-2021, TurtleQueue All Rights Reserved. Use is subject to license terms.