public abstract class GrpcServerLifecycleEvent extends ApplicationEvent
GrpcServerLifecycle
.source
Modifier | Constructor and Description |
---|---|
protected |
GrpcServerLifecycleEvent(GrpcServerLifecycle lifecyle,
Clock clock,
Server server)
Creates a new GrpcServerLifecycleEvent.
|
protected |
GrpcServerLifecycleEvent(GrpcServerLifecycle lifecyle,
Server server)
Creates a new GrpcServerLifecycleEvent.
|
Modifier and Type | Method and Description |
---|---|
Server |
getServer()
Gets the server related to this event.
|
GrpcServerLifecycle |
getSource()
Gets the lifecycle instance that triggered this event.
|
getTimestamp
toString
protected GrpcServerLifecycleEvent(GrpcServerLifecycle lifecyle, Clock clock, 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, Server server)
lifecyle
- The lifecycle that caused this event.server
- The server related to this event.public Server getServer()
public GrpcServerLifecycle getSource()
getSource
in class EventObject