public abstract class GrpcServerLifecycleEvent extends ApplicationEvent
GrpcServerLifecycle.source| Modifier | Constructor and Description |
|---|---|
protected |
GrpcServerLifecycleEvent(GrpcServerLifecycle lifecyle,
Clock clock,
io.grpc.Server server)
Creates a new GrpcServerLifecycleEvent.
|
protected |
GrpcServerLifecycleEvent(GrpcServerLifecycle lifecyle,
io.grpc.Server server)
Creates a new GrpcServerLifecycleEvent.
|
| Modifier and Type | Method and Description |
|---|---|
io.grpc.Server |
getServer()
Gets the server related to this event.
|
GrpcServerLifecycle |
getSource()
Gets the lifecycle instance that triggered this event.
|
getTimestamptoStringprotected GrpcServerLifecycleEvent(GrpcServerLifecycle lifecyle, Clock clock, io.grpc.Server server)
lifecyle - The lifecycle that caused this event.clock - The clock used to determine the timestamp.server - The server related to this event.protected GrpcServerLifecycleEvent(GrpcServerLifecycle lifecyle, io.grpc.Server server)
lifecyle - The lifecycle that caused this event.server - The server related to this event.public io.grpc.Server getServer()
public GrpcServerLifecycle getSource()
getSource in class EventObject