@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 of.
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 java.lang.String |
getName()
Deprecated.
See
Service.getName() . |
default void |
onStart(StartEvent event)
Deprecated.
|
default void |
onStop(StopEvent event)
Deprecated.
|
default java.lang.String getName()
Service.getName()
.@NonBlocking default void onStart(StartEvent event) throws java.lang.Exception
event
- meta information about the startup eventjava.lang.Exception
- any@NonBlocking default void onStop(StopEvent event) throws java.lang.Exception
event
- meta information about the stop eventjava.lang.Exception
- any