Class CreateServiceInstanceEventFlowRegistry
java.lang.Object
org.springframework.cloud.servicebroker.service.events.EventFlowRegistry<CreateServiceInstanceInitializationFlow,CreateServiceInstanceCompletionFlow,CreateServiceInstanceErrorFlow,CreateServiceInstanceRequest,CreateServiceInstanceResponse>
org.springframework.cloud.servicebroker.service.events.CreateServiceInstanceEventFlowRegistry
public class CreateServiceInstanceEventFlowRegistry
extends EventFlowRegistry<CreateServiceInstanceInitializationFlow,CreateServiceInstanceCompletionFlow,CreateServiceInstanceErrorFlow,CreateServiceInstanceRequest,CreateServiceInstanceResponse>
Event flow registry for create service instance requests.
- Author:
- Roy Clarkson
-
Constructor Summary
ConstructorDescriptionCreateServiceInstanceEventFlowRegistry
(List<CreateServiceInstanceInitializationFlow> initializationFlows, List<CreateServiceInstanceCompletionFlow> completionFlows, List<CreateServiceInstanceErrorFlow> errorFlows) Construct a newCreateServiceInstanceEventFlowRegistry
. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<Void>
getCompletionFlows
(CreateServiceInstanceRequest request, CreateServiceInstanceResponse response) Retrieve the completion flows as a Flux.reactor.core.publisher.Flux<Void>
getErrorFlows
(CreateServiceInstanceRequest request, Throwable t) Retrieve the error flows as a Flux.reactor.core.publisher.Flux<Void>
Retrieve the initialization flows as a Flux.Methods inherited from class org.springframework.cloud.servicebroker.service.events.EventFlowRegistry
addCompletionFlow, addErrorFlow, addInitializationFlow, getCompletionFlowsInternal, getErrorFlowsInternal, getInitializationFlowsInternal
-
Constructor Details
-
CreateServiceInstanceEventFlowRegistry
public CreateServiceInstanceEventFlowRegistry(List<CreateServiceInstanceInitializationFlow> initializationFlows, List<CreateServiceInstanceCompletionFlow> completionFlows, List<CreateServiceInstanceErrorFlow> errorFlows) Construct a newCreateServiceInstanceEventFlowRegistry
.- Parameters:
initializationFlows
- the initialization flowscompletionFlows
- the completion flowserrorFlows
- the error flows
-
-
Method Details
-
getInitializationFlows
public reactor.core.publisher.Flux<Void> getInitializationFlows(CreateServiceInstanceRequest request) Description copied from class:EventFlowRegistry
Retrieve the initialization flows as a Flux.- Specified by:
getInitializationFlows
in classEventFlowRegistry<CreateServiceInstanceInitializationFlow,
CreateServiceInstanceCompletionFlow, CreateServiceInstanceErrorFlow, CreateServiceInstanceRequest, CreateServiceInstanceResponse> - Parameters:
request
- the service broker request- Returns:
- a Flux of initialization flows
-
getCompletionFlows
public reactor.core.publisher.Flux<Void> getCompletionFlows(CreateServiceInstanceRequest request, CreateServiceInstanceResponse response) Description copied from class:EventFlowRegistry
Retrieve the completion flows as a Flux.- Specified by:
getCompletionFlows
in classEventFlowRegistry<CreateServiceInstanceInitializationFlow,
CreateServiceInstanceCompletionFlow, CreateServiceInstanceErrorFlow, CreateServiceInstanceRequest, CreateServiceInstanceResponse> - Parameters:
request
- the service broker requestresponse
- the service broker response- Returns:
- a Flux of completion flows
-
getErrorFlows
public reactor.core.publisher.Flux<Void> getErrorFlows(CreateServiceInstanceRequest request, Throwable t) Description copied from class:EventFlowRegistry
Retrieve the error flows as a Flux.- Specified by:
getErrorFlows
in classEventFlowRegistry<CreateServiceInstanceInitializationFlow,
CreateServiceInstanceCompletionFlow, CreateServiceInstanceErrorFlow, CreateServiceInstanceRequest, CreateServiceInstanceResponse> - Parameters:
request
- the service broker requestt
- the error- Returns:
- a Flux of error flows
-