- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ActivationRequest.BuilderBase.ActivationRequestImpl
Request to activate a service.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forActivationRequest.static classActivationRequest.BuilderBase<BUILDER extends ActivationRequest.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ActivationRequest> Fluent API builder base forActivationRequest. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivationRequest.Builderbuilder()Create a new fluent API builder to customize configuration.static ActivationRequest.Builderbuilder(ActivationRequest instance) Create a new fluent API builder from an existing instance.The phase to start activation.Ultimate target phase for activation.booleanWhether to throw an exception on failure to activate, or return an error activation result on activation.
-
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
-
startingPhase
Optional<ActivationPhase> startingPhase()The phase to start activation. Typically, this should be left as the default (i.e., PENDING).- Returns:
- phase to start
-
targetPhase
ActivationPhase targetPhase()Ultimate target phase for activation.Defaults to
ActivationPhase.ACTIVE, unless configured otherwise (in the registry).- Returns:
- phase to target
-
throwIfError
boolean throwIfError()Whether to throw an exception on failure to activate, or return an error activation result on activation.- Returns:
- whether to throw on failure
-