Class GrpcServerShutdownEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.grpc.server.lifecycle.GrpcServerLifecycleEvent
org.springframework.grpc.server.lifecycle.GrpcServerShutdownEvent
All Implemented Interfaces:
Serializable

public class GrpcServerShutdownEvent extends GrpcServerLifecycleEvent
This event will be fired before the server starts to shutdown. The server will no longer process new requests.
Author:
Daniel Theuke ([email protected])
See Also:
  • Constructor Details

    • GrpcServerShutdownEvent

      public GrpcServerShutdownEvent(GrpcServerLifecycle lifecyle, Clock clock, io.grpc.Server server)
      Creates a new GrpcServerShutdownEvent.
      Parameters:
      lifecyle - The lifecycle that caused this event.
      clock - The clock used to determine the timestamp.
      server - The server related to this event.
    • GrpcServerShutdownEvent

      public GrpcServerShutdownEvent(GrpcServerLifecycle lifecyle, io.grpc.Server server)
      Creates a new GrpcServerShutdownEvent.
      Parameters:
      lifecyle - The lifecycle that caused this event.
      server - The server related to this event.