Package net.devh.boot.grpc.server.event
Class GrpcServerTerminatedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
net.devh.boot.grpc.server.event.GrpcServerLifecycleEvent
net.devh.boot.grpc.server.event.GrpcServerTerminatedEvent
- All Implemented Interfaces:
Serializable
This event will be fired after the server completed to shutdown. The server will no longer process requests.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGrpcServerTerminatedEvent(GrpcServerLifecycle lifecyle, Server server) Creates a new GrpcServerTerminatedEvent.GrpcServerTerminatedEvent(GrpcServerLifecycle lifecyle, Clock clock, Server server) Creates a new GrpcServerTerminatedEvent. -
Method Summary
Methods inherited from class net.devh.boot.grpc.server.event.GrpcServerLifecycleEvent
getServer, getSourceMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
GrpcServerTerminatedEvent
Creates a new GrpcServerTerminatedEvent.- Parameters:
lifecyle- The lifecycle that caused this event.clock- The clock used to determine the timestamp.server- The server related to this event.
-
GrpcServerTerminatedEvent
Creates a new GrpcServerTerminatedEvent.- Parameters:
lifecyle- The lifecycle that caused this event.server- The server related to this event.
-