Class ServiceInstanceEventService
java.lang.Object
org.springframework.cloud.servicebroker.service.ServiceInstanceEventService
- All Implemented Interfaces:
ServiceInstanceService
Internal implementation of
ServiceInstanceService that attaches event hooks to requests related to
provisioning, updating, and deprovisioning service instances.- Author:
- Roy Clarkson
-
Constructor Summary
ConstructorsConstructorDescriptionServiceInstanceEventService(ServiceInstanceService serviceInstanceService, EventFlowRegistries eventFlowRegistries) Constructs a newServiceInstanceEventService -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<CreateServiceInstanceResponse>Create (provision) a new service instance.reactor.core.publisher.Mono<DeleteServiceInstanceResponse>Delete (deprovision) a service instance.reactor.core.publisher.Mono<GetLastServiceOperationResponse>Get the status of the last requested operation for a service instance.reactor.core.publisher.Mono<GetServiceInstanceResponse>Get the details of a service instance.reactor.core.publisher.Mono<UpdateServiceInstanceResponse>Update a service instance.
-
Constructor Details
-
ServiceInstanceEventService
public ServiceInstanceEventService(ServiceInstanceService serviceInstanceService, EventFlowRegistries eventFlowRegistries) Constructs a newServiceInstanceEventService- Parameters:
serviceInstanceService- the service instance serviceeventFlowRegistries- the event flow registries
-
-
Method Details
-
createServiceInstance
public reactor.core.publisher.Mono<CreateServiceInstanceResponse> createServiceInstance(CreateServiceInstanceRequest request) Description copied from interface:ServiceInstanceServiceCreate (provision) a new service instance.- Specified by:
createServiceInstancein interfaceServiceInstanceService- Parameters:
request- containing the details of the request- Returns:
- a
CreateServiceInstanceResponseon successful processing of the request
-
getServiceInstance
public reactor.core.publisher.Mono<GetServiceInstanceResponse> getServiceInstance(GetServiceInstanceRequest request) Description copied from interface:ServiceInstanceServiceGet the details of a service instance.- Specified by:
getServiceInstancein interfaceServiceInstanceService- Parameters:
request- containing the details of the request- Returns:
- a
GetServiceInstanceResponseon successful processing of the request
-
getLastOperation
public reactor.core.publisher.Mono<GetLastServiceOperationResponse> getLastOperation(GetLastServiceOperationRequest request) Description copied from interface:ServiceInstanceServiceGet the status of the last requested operation for a service instance.- Specified by:
getLastOperationin interfaceServiceInstanceService- Parameters:
request- containing the details of the request- Returns:
- a
GetLastServiceOperationResponseon successful processing of the request
-
deleteServiceInstance
public reactor.core.publisher.Mono<DeleteServiceInstanceResponse> deleteServiceInstance(DeleteServiceInstanceRequest request) Description copied from interface:ServiceInstanceServiceDelete (deprovision) a service instance.- Specified by:
deleteServiceInstancein interfaceServiceInstanceService- Parameters:
request- containing the details of the request- Returns:
- a
DeleteServiceInstanceResponseon successful processing of the request
-
updateServiceInstance
public reactor.core.publisher.Mono<UpdateServiceInstanceResponse> updateServiceInstance(UpdateServiceInstanceRequest request) Description copied from interface:ServiceInstanceServiceUpdate a service instance.- Specified by:
updateServiceInstancein interfaceServiceInstanceService- Parameters:
request- containing the details of the request- Returns:
- an
UpdateServiceInstanceResponseon successful processing of the request
-