接口的使用
org.apache.pulsar.client.api.Messages
使用Messages的程序包
-
org.apache.pulsar.client.api中Messages的使用
返回变量类型为Messages的类型的org.apache.pulsar.client.api中的方法参数类型为Messages的org.apache.pulsar.client.api中的方法修饰符和类型方法说明voidConsumer.acknowledge(Messages<?> messages) Acknowledge the consumption ofMessages.Consumer.acknowledgeAsync(Messages<?> messages) Asynchronously acknowledge the consumption ofMessages.voidConsumer.negativeAcknowledge(Messages<?> messages) Acknowledge the failure to processMessages.voidConsumer.reconsumeLater(Messages<?> messages, long delayTime, TimeUnit unit) reconsumeLater the consumption ofMessages.Consumer.reconsumeLaterAsync(Messages<?> messages, long delayTime, TimeUnit unit) Asynchronously reconsumeLater the consumption ofMessages.