Class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub (1.14.8)

public static final class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub extends 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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub

Methods

assignPartitions(StreamObserver<PartitionAssignment> responseObserver)

public StreamObserver<PartitionAssignmentRequest> assignPartitions(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.

Parameter
Name Description
responseObserver io.grpc.stub.StreamObserver<PartitionAssignment>
Returns
Type Description
io.grpc.stub.StreamObserver<PartitionAssignmentRequest>

build(Channel channel, CallOptions callOptions)

protected PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
PartitionAssignmentServiceGrpc.PartitionAssignmentServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)