Package ratpack.server
Interface Service
-
- All Known Subinterfaces:
SessionStore
- All Known Implementing Classes:
HikariService
@Deprecated public interface ServiceDeprecated.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
Servicein 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
Servicetype.- See Also:
Service
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.lang.StringgetName()Deprecated.SeeService.getName().default voidonStart(StartEvent event)Deprecated.default voidonStop(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
-
-