Class RaftGrpc.RaftFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<RaftGrpc.RaftFutureStub>
io.metaloom.qdrant.client.grpc.proto.RaftGrpc.RaftFutureStub
Enclosing class:
RaftGrpc

public static final class RaftGrpc.RaftFutureStub extends io.grpc.stub.AbstractFutureStub<RaftGrpc.RaftFutureStub>
  • 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
    com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
    DEPRECATED Its functionality is now included in `AddPeerToKnown` Send to bootstrap peer Proposes to add this peer as participant of consensus
    com.google.common.util.concurrent.ListenableFuture<RaftService.AllPeers>
    Send to bootstrap peer Adds peer to the network Returns all peers
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
    Send Raft message to another peer
    com.google.common.util.concurrent.ListenableFuture<RaftService.Uri>
    Send to bootstrap peer Returns uri by id if bootstrap knows this peer

    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 RaftGrpc.RaftFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<RaftGrpc.RaftFutureStub>
    • send

      public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> send(RaftService.RaftMessage request)
       Send Raft message to another peer
       
    • whoIs

      public com.google.common.util.concurrent.ListenableFuture<RaftService.Uri> whoIs(RaftService.PeerId request)
       Send to bootstrap peer
       Returns uri by id if bootstrap knows this peer
       
    • addPeerToKnown

      public com.google.common.util.concurrent.ListenableFuture<RaftService.AllPeers> addPeerToKnown(RaftService.AddPeerToKnownMessage request)
       Send to bootstrap peer
       Adds peer to the network
       Returns all peers
       
    • addPeerAsParticipant

      public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> addPeerAsParticipant(RaftService.PeerId request)
       DEPRECATED
       Its functionality is now included in `AddPeerToKnown`
       Send to bootstrap peer
       Proposes to add this peer as participant of consensus