Class EventsServer
- java.lang.Object
-
- pulumirpc.EventsGrpc.EventsImplBase
-
- com.pulumi.automation.events.internal.EventsServer
-
- All Implemented Interfaces:
io.grpc.BindableService,pulumirpc.EventsGrpc.AsyncService
@InternalUse public class EventsServer extends pulumirpc.EventsGrpc.EventsImplBasegRPC 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)
-
-
-
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)
-
-