Class GrpcPartitionAssignmentServiceStub (1.6.3)

public class GrpcPartitionAssignmentServiceStub extends PartitionAssignmentServiceStub

gRPC stub implementation for the PartitionAssignmentService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > PartitionAssignmentServiceStub > GrpcPartitionAssignmentServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcPartitionAssignmentServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcPartitionAssignmentServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcPartitionAssignmentServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcPartitionAssignmentServiceStub
Exceptions
TypeDescription
IOException

create(PartitionAssignmentServiceStubSettings settings)

public static final GrpcPartitionAssignmentServiceStub create(PartitionAssignmentServiceStubSettings settings)
Parameter
NameDescription
settingsPartitionAssignmentServiceStubSettings
Returns
TypeDescription
GrpcPartitionAssignmentServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcPartitionAssignmentServiceStub(PartitionAssignmentServiceStubSettings settings, ClientContext clientContext)

protected GrpcPartitionAssignmentServiceStub(PartitionAssignmentServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcPartitionAssignmentServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsPartitionAssignmentServiceStubSettings
clientContextClientContext

GrpcPartitionAssignmentServiceStub(PartitionAssignmentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcPartitionAssignmentServiceStub(PartitionAssignmentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcPartitionAssignmentServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsPartitionAssignmentServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

assignPartitionsCallable()

public BidiStreamingCallable<PartitionAssignmentRequest,PartitionAssignment> assignPartitionsCallable()
Returns
TypeDescription
BidiStreamingCallable<PartitionAssignmentRequest,PartitionAssignment>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()