public class ProducerClient extends Object
| 构造器和说明 |
|---|
ProducerClient(Client client) |
public ProducerClient(Client client)
public static ProducerClient build(Client client)
public ProduceMessageResponse produceMessage(String app, Map<String,ProduceMessageData> messages, long timeout)
public void produceMessageOneway(String app, Map<String,ProduceMessageData> messages, long timeout)
public void asyncProduceMessage(String app, Map<String,ProduceMessageData> messages, long timeout, CommandCallback callback)
public ProduceMessagePrepareResponse produceMessagePrepare(String topic, String app, long sequence, String transactionId, long transactionTimeout, long timeout)
public ProduceMessageCommitResponse produceMessageCommit(String topic, String app, String txId, long timeout)
public ProduceMessageRollbackResponse produceMessageRollback(String topic, String app, String txId, long timeout)
public FetchProduceFeedbackResponse fetchFeedback(String topic, String app, TxStatus txStatus, int count, long longPollTimeout, long timeout)
public void addProducers()
public void addProducers(Collection<String> topics, String app)
public void removeProducers(Collection<String> topics, String app)
public void close()
public TransportAttribute getAttribute()
public Client getClient()
public ClientState getState()
Copyright © 2020 Joyqueue Community. All rights reserved.