Class BranchServiceGrpc.BranchServiceFutureStub (2.48.0)

public static final class BranchServiceGrpc.BranchServiceFutureStub extends AbstractFutureStub<BranchServiceGrpc.BranchServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service BranchService.

Service for Branch Management Branches are automatically created when a Catalog is created. There are fixed three branches in each catalog, and may use ListBranches method to get the details of all branches.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > BranchServiceGrpc.BranchServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

getBranch(GetBranchRequest request)

public ListenableFuture<Branch> getBranch(GetBranchRequest request)

Retrieves a Branch.

Parameter
Name Description
request GetBranchRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Branch>

listBranches(ListBranchesRequest request)

public ListenableFuture<ListBranchesResponse> listBranches(ListBranchesRequest request)

Lists all Branchs under the specified parent Catalog.

Parameter
Name Description
request ListBranchesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListBranchesResponse>