Class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<PartitionAssignmentServiceGrpc.PartitionAssignmentServiceBlockingV2Stub>
com.google.cloud.pubsublite.proto.PartitionAssignmentServiceGrpc.PartitionAssignmentServiceBlockingV2Stub
- Enclosing class:
- PartitionAssignmentServiceGrpc
public static final class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<PartitionAssignmentServiceGrpc.PartitionAssignmentServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service PartitionAssignmentService.
The service that a subscriber client application uses to determine which partitions it should connect to.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.stub.BlockingClientCall<PartitionAssignmentRequest,PartitionAssignment> Assign partitions for this client to handle for the specified subscription.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PartitionAssignmentServiceGrpc.PartitionAssignmentServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PartitionAssignmentServiceGrpc.PartitionAssignmentServiceBlockingV2Stub>
-
assignPartitions
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<PartitionAssignmentRequest,PartitionAssignment> assignPartitions()Assign partitions for this client to handle for the specified subscription. The client must send an InitialPartitionAssignmentRequest first. The server will then send at most one unacknowledged PartitionAssignment outstanding on the stream at a time. The client should send a PartitionAssignmentAck after updating the partitions it is connected to to reflect the new assignment.
-