Class RaftGrpc.RaftStub

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

public static final class RaftGrpc.RaftStub extends io.grpc.stub.AbstractAsyncStub<RaftGrpc.RaftStub>
  • 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
    void
    addPeerAsParticipant(RaftService.PeerId request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    DEPRECATED Its functionality is now included in `AddPeerToKnown` Send to bootstrap peer Proposes to add this peer as participant of consensus
    void
    addPeerToKnown(RaftService.AddPeerToKnownMessage request, io.grpc.stub.StreamObserver<RaftService.AllPeers> responseObserver)
    Send to bootstrap peer Adds peer to the network Returns all peers
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    send(RaftService.RaftMessage request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    Send Raft message to another peer
    void
    whoIs(RaftService.PeerId request, io.grpc.stub.StreamObserver<RaftService.Uri> responseObserver)
    Send to bootstrap peer Returns uri by id if bootstrap knows this peer

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

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

      public void send(RaftService.RaftMessage request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
       Send Raft message to another peer
       
    • whoIs

      public void whoIs(RaftService.PeerId request, io.grpc.stub.StreamObserver<RaftService.Uri> responseObserver)
       Send to bootstrap peer
       Returns uri by id if bootstrap knows this peer
       
    • addPeerToKnown

      public void addPeerToKnown(RaftService.AddPeerToKnownMessage request, io.grpc.stub.StreamObserver<RaftService.AllPeers> responseObserver)
       Send to bootstrap peer
       Adds peer to the network
       Returns all peers
       
    • addPeerAsParticipant

      public void addPeerAsParticipant(RaftService.PeerId request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
       DEPRECATED
       Its functionality is now included in `AddPeerToKnown`
       Send to bootstrap peer
       Proposes to add this peer as participant of consensus