public static interface ServicePassivator.Termination
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServicePassivator.Termination.Failure |
static class |
ServicePassivator.Termination.Success |
| Modifier and Type | Method and Description |
|---|---|
default ServicePassivator.Termination |
onFailure(Consumer<ServicePassivator.Passivator.Accounting.InScopeOfContext> recoverer)
Recover the failure if the passivation was a failure, ie: some activity has been detected during the
protected operation.
|
default ServicePassivator.Termination |
onSuccess(Runnable finisher)
Executes the runnable if the passivation was as success
|
default ServicePassivator.Termination |
peek(Consumer<ServicePassivator.Termination> consumer) |
default ServicePassivator.Termination onSuccess(Runnable finisher)
runnable - default ServicePassivator.Termination onFailure(Consumer<ServicePassivator.Passivator.Accounting.InScopeOfContext> recoverer)
runnable - the failure actiondefault ServicePassivator.Termination peek(Consumer<ServicePassivator.Termination> consumer)
Copyright © 2016 Nuxeo SA. All rights reserved.