Package ratpack.server
Interface Service
-
@Deprecated public interface Service
Deprecated.since 1.3Deprecated, replaced byService
.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.- See Also:
Service
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.lang.String
getName()
Deprecated.SeeService.getName()
.default void
onStart(StartEvent event)
Deprecated.default void
onStop(StopEvent event)
Deprecated.
-
-
-
Method Detail
-
getName
default java.lang.String getName()
Deprecated.SeeService.getName()
.- Returns:
- the name of this service, used for display purposes
-
onStart
@NonBlocking default void onStart(StartEvent event) throws java.lang.Exception
Deprecated.- Parameters:
event
- meta information about the startup event- Throws:
java.lang.Exception
- any
-
onStop
@NonBlocking default void onStop(StopEvent event) throws java.lang.Exception
Deprecated.- Parameters:
event
- meta information about the stop event- Throws:
java.lang.Exception
- any
-
-