Class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceImplBase (1.6.3)

public abstract static class PartitionAssignmentServiceGrpc.PartitionAssignmentServiceImplBase implements BindableService

The service that a subscriber client application uses to determine which partitions it should connect to.

Inheritance

java.lang.Object > PartitionAssignmentServiceGrpc.PartitionAssignmentServiceImplBase

Implements

io.grpc.BindableService

Constructors

PartitionAssignmentServiceImplBase()

public PartitionAssignmentServiceImplBase()

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
NameDescription
responseObserverio.grpc.stub.StreamObserver<PartitionAssignment>
Returns
TypeDescription
io.grpc.stub.StreamObserver<PartitionAssignmentRequest>

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition