类 PullConsumerImpl
- java.lang.Object
-
- com.aliyun.openservices.ons.client.rocketmq.impl.PullConsumerImpl
-
- 所有已实现的接口:
Admin,PullConsumer
public class PullConsumerImpl extends Object implements PullConsumer
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.aliyun.openservices.ons.api.PullConsumer
PullConsumer.TopicPartitionChangeListener
-
-
构造器概要
构造器 构造器 说明 PullConsumerImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidassign(Collection<TopicPartition> topicPartitions)voidcommitSync()Longcommitted(TopicPartition topicPartition)booleanisClosed()booleanisStarted()LongoffsetForTimestamp(TopicPartition topicPartition, Long timestamp)voidpause(Collection<TopicPartition> topicPartitions)List<Message>poll(long timeout)voidregisterTopicPartitionChangedListener(String topic, PullConsumer.TopicPartitionChangeListener callback)voidresume(Collection<TopicPartition> topicPartitions)voidseek(TopicPartition topicPartition, long offset)voidseekToBeginning(TopicPartition topicPartition)voidseekToEnd(TopicPartition topicPartition)voidshutdown()voidstart()Set<TopicPartition>topicPartitions(String topic)voidupdateCredential(Properties credentialProperties)
-
-
-
方法详细资料
-
updateCredential
public void updateCredential(Properties credentialProperties)
- 指定者:
updateCredential在接口中Admin
-
topicPartitions
public Set<TopicPartition> topicPartitions(String topic)
- 指定者:
topicPartitions在接口中PullConsumer
-
assign
public void assign(Collection<TopicPartition> topicPartitions)
- 指定者:
assign在接口中PullConsumer
-
registerTopicPartitionChangedListener
public void registerTopicPartitionChangedListener(String topic, PullConsumer.TopicPartitionChangeListener callback)
-
poll
public List<Message> poll(long timeout)
- 指定者:
poll在接口中PullConsumer
-
seek
public void seek(TopicPartition topicPartition, long offset)
- 指定者:
seek在接口中PullConsumer
-
seekToBeginning
public void seekToBeginning(TopicPartition topicPartition)
- 指定者:
seekToBeginning在接口中PullConsumer
-
seekToEnd
public void seekToEnd(TopicPartition topicPartition)
- 指定者:
seekToEnd在接口中PullConsumer
-
pause
public void pause(Collection<TopicPartition> topicPartitions)
- 指定者:
pause在接口中PullConsumer
-
resume
public void resume(Collection<TopicPartition> topicPartitions)
- 指定者:
resume在接口中PullConsumer
-
offsetForTimestamp
public Long offsetForTimestamp(TopicPartition topicPartition, Long timestamp)
- 指定者:
offsetForTimestamp在接口中PullConsumer
-
committed
public Long committed(TopicPartition topicPartition)
- 指定者:
committed在接口中PullConsumer
-
commitSync
public void commitSync()
- 指定者:
commitSync在接口中PullConsumer
-
-