@Deprecated public interface Service
Service
.
This class is here to maintain backwards compatibility in Ratpack 1.x. It will be removed in Ratpack 2.x.
It is semantically equivalent to Service
in all ways except for ordering.
Services of this type do not receive events in parallel.
Services dependencies are implicitly established between services of this type based on their
return order from the server registry.
It is recommended that all users migrate to the Service
type.
Service
Modifier and Type | Method and Description |
---|---|
default String |
getName()
Deprecated.
See
Service.getName() . |
default void |
onStart(StartEvent event)
Deprecated.
|
default void |
onStop(StopEvent event)
Deprecated.
|
default String getName()
Service.getName()
.@NonBlocking default void onStart(StartEvent event) throws Exception
event
- meta information about the startup eventException
- any@NonBlocking default void onStop(StopEvent event) throws Exception
event
- meta information about the stop eventException
- any