Package | Description |
---|---|
ratpack.service |
Services participate in the application start/stop lifecycle.
|
Modifier and Type | Method and Description |
---|---|
static Service |
Service.shutdown(java.lang.String name,
Action<? super StopEvent> action)
Creates a service that executes the given action as the
onStop(StopEvent) implementation. |
static Service |
Service.startup(java.lang.String name,
Action<? super StartEvent> action)
Creates a service that executes the given action as the
onStart(StartEvent) implementation. |
Modifier and Type | Method and Description |
---|---|
ServiceDependenciesSpec |
ServiceDependenciesSpec.dependsOn(Predicate<? super Service> dependents,
Predicate<? super Service> dependencies)
Specifies that all services that match the
dependents predicate are dependent on all services that match the dependencies predicate. |
ServiceDependenciesSpec |
ServiceDependenciesSpec.dependsOn(Predicate<? super Service> dependents,
Predicate<? super Service> dependencies)
Specifies that all services that match the
dependents predicate are dependent on all services that match the dependencies predicate. |