public class PullConsumerImpl extends ONSClientAbstract implements PullConsumer
PullConsumer.TopicPartitionChangeListenernameServerAddr, namespaceId, properties, provider, sessionCredentials, started, traceDispatcher, WSADDR_INTERNAL, WSADDR_INTERNAL_TIMEOUTMILLS, WSADDR_INTERNET, WSADDR_INTERNET_TIMEOUTMILLS| Constructor and Description |
|---|
PullConsumerImpl(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(Collection<TopicPartition> topicPartitions) |
void |
commitSync() |
Long |
committed(TopicPartition topicPartition) |
Long |
offsetForTimestamp(TopicPartition topicPartition,
Long timestamp) |
void |
pause(Collection<TopicPartition> topicPartitions) |
List<Message> |
poll(long timeout) |
void |
registerTopicPartitionChangedListener(String topic,
PullConsumer.TopicPartitionChangeListener callback) |
void |
resume(Collection<TopicPartition> topicPartitions) |
void |
seek(TopicPartition topicPartition,
long offset) |
void |
seekToBeginning(TopicPartition topicPartition) |
void |
seekToEnd(TopicPartition topicPartition) |
void |
shutdown() |
void |
start() |
Set<TopicPartition> |
topicPartitions(String topic) |
protected void |
updateNameServerAddr(String nameServerAddresses) |
buildIntanceName, checkONSProducerServiceState, executePostHandle, getNameServerAddr, getNamespace, isClosed, isStarted, preHandle, updateCredentialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisClosed, isStarted, updateCredentialpublic PullConsumerImpl(Properties properties)
protected void updateNameServerAddr(String nameServerAddresses)
updateNameServerAddr in class ONSClientAbstractpublic Set<TopicPartition> topicPartitions(String topic)
topicPartitions in interface PullConsumerpublic void assign(Collection<TopicPartition> topicPartitions)
assign in interface PullConsumerpublic void registerTopicPartitionChangedListener(String topic, PullConsumer.TopicPartitionChangeListener callback)
registerTopicPartitionChangedListener in interface PullConsumerpublic List<Message> poll(long timeout)
poll in interface PullConsumerpublic void seek(TopicPartition topicPartition, long offset)
seek in interface PullConsumerpublic void seekToBeginning(TopicPartition topicPartition)
seekToBeginning in interface PullConsumerpublic void seekToEnd(TopicPartition topicPartition)
seekToEnd in interface PullConsumerpublic void pause(Collection<TopicPartition> topicPartitions)
pause in interface PullConsumerpublic void resume(Collection<TopicPartition> topicPartitions)
resume in interface PullConsumerpublic Long offsetForTimestamp(TopicPartition topicPartition, Long timestamp)
offsetForTimestamp in interface PullConsumerpublic Long committed(TopicPartition topicPartition)
committed in interface PullConsumerpublic void commitSync()
commitSync in interface PullConsumerpublic void start()
start in interface Adminstart in class ONSClientAbstractpublic void shutdown()
shutdown in interface Adminshutdown in class ONSClientAbstractCopyright © 2012–2022. All rights reserved.