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
ConstructorDescriptionServiceInstanceEventService
(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:ServiceInstanceService
Create (provision) a new service instance.- Specified by:
createServiceInstance
in interfaceServiceInstanceService
- Parameters:
request
- containing the details of the request- Returns:
- a
CreateServiceInstanceResponse
on successful processing of the request
-
getServiceInstance
public reactor.core.publisher.Mono<GetServiceInstanceResponse> getServiceInstance(GetServiceInstanceRequest request) Description copied from interface:ServiceInstanceService
Get the details of a service instance.- Specified by:
getServiceInstance
in interfaceServiceInstanceService
- Parameters:
request
- containing the details of the request- Returns:
- a
GetServiceInstanceResponse
on successful processing of the request
-
getLastOperation
public reactor.core.publisher.Mono<GetLastServiceOperationResponse> getLastOperation(GetLastServiceOperationRequest request) Description copied from interface:ServiceInstanceService
Get the status of the last requested operation for a service instance.- Specified by:
getLastOperation
in interfaceServiceInstanceService
- Parameters:
request
- containing the details of the request- Returns:
- a
GetLastServiceOperationResponse
on successful processing of the request
-
deleteServiceInstance
public reactor.core.publisher.Mono<DeleteServiceInstanceResponse> deleteServiceInstance(DeleteServiceInstanceRequest request) Description copied from interface:ServiceInstanceService
Delete (deprovision) a service instance.- Specified by:
deleteServiceInstance
in interfaceServiceInstanceService
- Parameters:
request
- containing the details of the request- Returns:
- a
DeleteServiceInstanceResponse
on successful processing of the request
-
updateServiceInstance
public reactor.core.publisher.Mono<UpdateServiceInstanceResponse> updateServiceInstance(UpdateServiceInstanceRequest request) Description copied from interface:ServiceInstanceService
Update a service instance.- Specified by:
updateServiceInstance
in interfaceServiceInstanceService
- Parameters:
request
- containing the details of the request- Returns:
- an
UpdateServiceInstanceResponse
on successful processing of the request
-