Class ServerShutdownEvent
- java.lang.Object
-
- java.util.EventObject
-
- io.micronaut.context.event.ApplicationEvent
-
- io.micronaut.runtime.event.AbstractEmbeddedApplicationEvent
-
- io.micronaut.runtime.event.ApplicationShutdownEvent
-
- io.micronaut.runtime.server.event.ServerShutdownEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ServerShutdownEvent extends ApplicationShutdownEvent
Event fired when theEmbeddedServer
shuts down.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerShutdownEvent(EmbeddedServer embeddedServer)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmbeddedServer
getSource()
-
-
-
Constructor Detail
-
ServerShutdownEvent
public ServerShutdownEvent(EmbeddedServer embeddedServer)
Constructs a prototypical Event.- Parameters:
embeddedServer
- object on which the Event initially occurred.- Throws:
java.lang.IllegalArgumentException
- if source is null.
-
-
Method Detail
-
getSource
public EmbeddedServer getSource()
- Overrides:
getSource
in classAbstractEmbeddedApplicationEvent
-
-