Class GrpcServerTerminatedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.grpc.server.lifecycle.GrpcServerLifecycleEvent
org.springframework.grpc.server.lifecycle.GrpcServerTerminatedEvent
- All Implemented Interfaces:
Serializable
This event will be fired after the server completed to shutdown. The server will no
longer process requests.
- Author:
- Daniel Theuke ([email protected])
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGrpcServerTerminatedEvent(GrpcServerLifecycle lifecyle, io.grpc.Server server) Creates a new GrpcServerTerminatedEvent.GrpcServerTerminatedEvent(GrpcServerLifecycle lifecyle, Clock clock, io.grpc.Server server) Creates a new GrpcServerTerminatedEvent. -
Method Summary
Methods inherited from class GrpcServerLifecycleEvent
getServer, getSourceMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class 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.
-