Class OxiaClientGrpc.OxiaClientFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<OxiaClientGrpc.OxiaClientFutureStub>
io.streamnative.oxia.proto.OxiaClientGrpc.OxiaClientFutureStub
Enclosing class:
OxiaClientGrpc

public static final class OxiaClientGrpc.OxiaClientFutureStub extends io.grpc.stub.AbstractFutureStub<OxiaClientGrpc.OxiaClientFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service OxiaClient.

 Oxia service that allows clients to discover shard-to-server assignments and
 submit batches of requests.
 Clients should connect to a random server to discover the shard-to-server
 assignments and then send the actual batched requests to the appropriate
 shard leader. In the future, this may be handled server-side in a proxy
 layer to allows clients to not be concerned with sharding.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    com.google.common.util.concurrent.ListenableFuture<CloseSessionResponse>
    Closes a session and removes all ephemeral values associated with it.
    com.google.common.util.concurrent.ListenableFuture<CreateSessionResponse>
    Creates a new client session.
    com.google.common.util.concurrent.ListenableFuture<KeepAliveResponse>
    Sends a heartbeat to prevent the session from timing out.
    com.google.common.util.concurrent.ListenableFuture<WriteResponse>
    Batches put, delete and delete_range requests.

    Methods inherited from class io.grpc.stub.AbstractFutureStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected OxiaClientGrpc.OxiaClientFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<OxiaClientGrpc.OxiaClientFutureStub>
    • write

      public com.google.common.util.concurrent.ListenableFuture<WriteResponse> write(WriteRequest request)
      
       Batches put, delete and delete_range requests.
       Clients should send this request to the shard leader. In the future,
       this may be handled server-side in a proxy layer.
       Deprecated
       
    • createSession

      public com.google.common.util.concurrent.ListenableFuture<CreateSessionResponse> createSession(CreateSessionRequest request)
       Creates a new client session. Sessions are kept alive by regularly sending
       heartbeats via the KeepAlive rpc.
       
    • keepAlive

      public com.google.common.util.concurrent.ListenableFuture<KeepAliveResponse> keepAlive(SessionHeartbeat request)
       Sends a heartbeat to prevent the session from timing out.
       
    • closeSession

      public com.google.common.util.concurrent.ListenableFuture<CloseSessionResponse> closeSession(CloseSessionRequest request)
       Closes a session and removes all ephemeral values associated with it.