- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ActivationResult.BuilderBase.ActivationResultImpl
Represents the result of a service activation or deactivation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forActivationResult.static classActivationResult.BuilderBase<BUILDER extends ActivationResult.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ActivationResult> Fluent API builder base forActivationResult. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivationResult.Builderbuilder()Create a new fluent API builder to customize configuration.static ActivationResult.Builderbuilder(ActivationResult instance) Create a new fluent API builder from an existing instance.static ActivationResultcreate()Create a new instance with default values.error()Any throwable/exceptions that were observed during activation.default booleanfailure()Returns true if this result was unsuccessful.The activation phase we finished successfully on, or are otherwise currently in if not yet finished.The activation phase that was found at onset of the phase transition.booleansuccess()Returns true if this result was successful.The activation phase that was requested at the onset of the phase transition.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
startingActivationPhase
ActivationPhase startingActivationPhase()The activation phase that was found at onset of the phase transition.- Returns:
- the starting phase
-
targetActivationPhase
ActivationPhase targetActivationPhase()The activation phase that was requested at the onset of the phase transition.- Returns:
- the target, desired, ultimate phase requested
-
finishingActivationPhase
ActivationPhase finishingActivationPhase()The activation phase we finished successfully on, or are otherwise currently in if not yet finished.- Returns:
- the finishing phase
-
error
Any throwable/exceptions that were observed during activation.- Returns:
- any captured error
-
success
boolean success()Returns true if this result was successful.- Returns:
- true if successful
-
failure
default boolean failure()Returns true if this result was unsuccessful.- Returns:
- true if unsuccessful
-