| Modifier and Type | Method and Description |
|---|---|
static Partition |
Partition.of(long partition)
Create a partition from its long value.
|
abstract Partition |
MessageMetadata.partition()
The partition a message was published to.
|
| Modifier and Type | Method and Description |
|---|---|
static MessageMetadata |
MessageMetadata.of(Partition partition,
Offset offset)
Construct a MessageMetadata from a Partition and Offset.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SubscriberSettings.Builder |
SubscriberSettings.Builder.setPartitions(List<Partition> partition)
The partitions this subscriber should connect to to receive messages.
|
| Modifier and Type | Method and Description |
|---|---|
Subscriber |
PartitionSubscriberFactory.newSubscriber(Partition partition) |
| Modifier and Type | Method and Description |
|---|---|
Partition |
DefaultRoutingPolicy.route(com.google.protobuf.ByteString messageKey) |
Partition |
RoutingPolicy.route(com.google.protobuf.ByteString messageKey) |
Partition |
DefaultRoutingPolicy.routeWithoutKey() |
Partition |
RoutingPolicy.routeWithoutKey() |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Map<Partition,Offset>> |
CursorClient.listPartitionCursors(SubscriptionPath path)
List the cursors for a given subscription.
|
com.google.api.core.ApiFuture<Map<Partition,Offset>> |
CursorClientImpl.listPartitionCursors(SubscriptionPath path) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Void> |
CursorClient.commitCursor(SubscriptionPath path,
Partition partition,
Offset offset)
Commit a single cursor.
|
com.google.api.core.ApiFuture<Void> |
CursorClientImpl.commitCursor(SubscriptionPath path,
Partition partition,
Offset offset) |
com.google.api.core.ApiFuture<Cursor> |
TopicStatsClientImpl.computeHeadCursor(TopicPath path,
Partition partition) |
com.google.api.core.ApiFuture<Cursor> |
TopicStatsClient.computeHeadCursor(TopicPath path,
Partition partition)
Compute the head cursor for the partition.
|
com.google.api.core.ApiFuture<ComputeMessageStatsResponse> |
TopicStatsClientImpl.computeMessageStats(TopicPath path,
Partition partition,
Offset start,
Offset end) |
com.google.api.core.ApiFuture<ComputeMessageStatsResponse> |
TopicStatsClient.computeMessageStats(TopicPath path,
Partition partition,
Offset start,
Offset end)
Compute statistics about the messages between two cursors in a topic partition.
|
| Modifier and Type | Method and Description |
|---|---|
static Partition |
UnitTestExamples.examplePartition() |
| Modifier and Type | Method and Description |
|---|---|
Publisher<MessageMetadata> |
PartitionPublisherFactory.newPublisher(Partition partition) |
static RoutingMetadata |
RoutingMetadata.of(SubscriptionPath subscription,
Partition partition) |
static RoutingMetadata |
RoutingMetadata.of(TopicPath topic,
Partition partition) |
abstract SubscriberBuilder.Builder |
SubscriberBuilder.Builder.setPartition(Partition partition) |
abstract PublisherBuilder.Builder |
PublisherBuilder.Builder.setPartition(Partition partition) |
abstract CommitterSettings.Builder |
CommitterSettings.Builder.setPartition(Partition partition) |
abstract SinglePartitionPublisherBuilder.Builder |
SinglePartitionPublisherBuilder.Builder.setPartition(Partition partition) |
| Modifier and Type | Method and Description |
|---|---|
void |
PartitionAssignmentReceiver.handleAssignment(Set<Partition> assignment) |
Copyright © 2021 Google LLC. All rights reserved.