Class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub>
-
- com.google.cloud.pubsublite.proto.PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub
-
- Enclosing class:
- PartitionAssignmentServiceGrpc
public static final class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub extends io.grpc.stub.AbstractAsyncStub<PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub>
A stub to allow clients to do asynchronous rpc calls to service PartitionAssignmentService.The service that a subscriber client application uses to determine which partitions it should connect to.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.stub.StreamObserver<PartitionAssignmentRequest>
assignPartitions(io.grpc.stub.StreamObserver<PartitionAssignment> responseObserver)
Assign partitions for this client to handle for the specified subscription.protected PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
-
Method Detail
-
build
protected PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub>
-
assignPartitions
public io.grpc.stub.StreamObserver<PartitionAssignmentRequest> assignPartitions(io.grpc.stub.StreamObserver<PartitionAssignment> responseObserver)
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.
-
-