Class EventsServer

  • All Implemented Interfaces:
    io.grpc.BindableService, pulumirpc.EventsGrpc.AsyncService

    @InternalUse
    public class EventsServer
    extends pulumirpc.EventsGrpc.EventsImplBase
    gRPC server implementation for receiving engine events from the Pulumi engine. This server implements the Events service defined in events.proto.
    • Constructor Summary

      Constructors 
      Constructor Description
      EventsServer​(java.util.function.Consumer<EngineEvent> onEvent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> getCompletionFuture()
      Return a future that completes when the event stream is finished.
      io.grpc.stub.StreamObserver<pulumirpc.EventsOuterClass.EventRequest> streamEvents​(io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)  
      • Methods inherited from class pulumirpc.EventsGrpc.EventsImplBase

        bindService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventsServer

        public EventsServer​(java.util.function.Consumer<EngineEvent> onEvent)
    • Method Detail

      • getCompletionFuture

        public java.util.concurrent.CompletableFuture<java.lang.Void> getCompletionFuture()
        Return a future that completes when the event stream is finished.
        Returns:
        CompletableFuture that completes when the stream ends
      • streamEvents

        public io.grpc.stub.StreamObserver<pulumirpc.EventsOuterClass.EventRequest> streamEvents​(io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)