Package net.devh.boot.grpc.server.event
Class GrpcServerShutdownEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
net.devh.boot.grpc.server.event.GrpcServerLifecycleEvent
net.devh.boot.grpc.server.event.GrpcServerShutdownEvent
- All Implemented Interfaces:
Serializable
This event will be fired before the server starts to shutdown. The server will no longer process new requests.
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcServerShutdownEvent
(GrpcServerLifecycle lifecyle, Server server) Creates a new GrpcServerShutdownEvent.GrpcServerShutdownEvent
(GrpcServerLifecycle lifecyle, Clock clock, Server server) Creates a new GrpcServerShutdownEvent. -
Method Summary
Methods inherited from class net.devh.boot.grpc.server.event.GrpcServerLifecycleEvent
getServer, getSource
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.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.
-