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
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:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGrpcServerShutdownEvent(GrpcServerLifecycle lifecyle, io.grpc.Server server) Creates a new GrpcServerShutdownEvent.GrpcServerShutdownEvent(GrpcServerLifecycle lifecyle, Clock clock, io.grpc.Server server) Creates a new GrpcServerShutdownEvent. -
Method Summary
Methods inherited from class GrpcServerLifecycleEvent
getServer, getSourceMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class EventObject
toString
-
Constructor Details
-
GrpcServerShutdownEvent
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
Creates a new GrpcServerShutdownEvent.- Parameters:
lifecyle- The lifecycle that caused this event.server- The server related to this event.
-