Class GrpcClient

    • Field Detail

      • sslContext

        protected final io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext
      • channel

        protected io.grpc.ManagedChannel channel
      • lastException

        protected java.lang.Exception lastException
      • currentChannelId

        protected java.util.UUID currentChannelId
      • shutdown

        protected volatile boolean shutdown
    • Constructor Detail

      • GrpcClient

        protected GrpcClient​(EventStoreDBClientSettings settings,
                             io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext)
    • Method Detail

      • startConnectionLoop

        protected void startConnectionLoop()
      • createConnectionLoopExecutor

        protected java.util.concurrent.Executor createConnectionLoopExecutor()
      • doConnect

        protected abstract boolean doConnect()
      • pushMsg

        protected void pushMsg​(com.eventstore.dbclient.GrpcClient.Msg msg)
      • run

        public <A> java.util.concurrent.CompletableFuture<A> run​(java.util.function.Function<io.grpc.ManagedChannel,​java.util.concurrent.CompletableFuture<A>> action)
      • sleep

        protected void sleep​(long millis)
      • createChannel

        protected io.grpc.ManagedChannel createChannel​(Endpoint endpoint)
      • shutdown

        public void shutdown()
                      throws java.util.concurrent.ExecutionException,
                             java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException