Class ServiceInstanceBindingEventService
java.lang.Object
org.springframework.cloud.servicebroker.service.ServiceInstanceBindingEventService
- All Implemented Interfaces:
ServiceInstanceBindingService
public class ServiceInstanceBindingEventService
extends Object
implements ServiceInstanceBindingService
Internal implementation of
ServiceInstanceBindingService
that attaches event
hooks to the requests to create and delete service instance bindings.- Author:
- Roy Clarkson
-
Constructor Summary
ConstructorDescriptionServiceInstanceBindingEventService
(ServiceInstanceBindingService service, EventFlowRegistries flows) Construct a newServiceInstanceBindingEventService
. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<CreateServiceInstanceBindingResponse>
Create a new binding to a service instance.reactor.core.publisher.Mono<DeleteServiceInstanceBindingResponse>
Delete a service instance binding.reactor.core.publisher.Mono<GetLastServiceBindingOperationResponse>
Get the status of the last requested operation for a service instance.reactor.core.publisher.Mono<GetServiceInstanceBindingResponse>
Get the details of a binding to a service instance.
-
Constructor Details
-
ServiceInstanceBindingEventService
public ServiceInstanceBindingEventService(ServiceInstanceBindingService service, EventFlowRegistries flows) Construct a newServiceInstanceBindingEventService
.- Parameters:
service
- the service instance binding serviceflows
- the event flow registries
-
-
Method Details
-
createServiceInstanceBinding
public reactor.core.publisher.Mono<CreateServiceInstanceBindingResponse> createServiceInstanceBinding(CreateServiceInstanceBindingRequest request) Description copied from interface:ServiceInstanceBindingService
Create a new binding to a service instance. In the case of a request to create a new service instance binding with an existing binding id, the implementor should throw anServiceInstanceBindingExistsException
, which will return a HTTP 409. If the request includes identical parameters as an existing binding, then the implementor should setCreateServiceInstanceBindingResponse.isBindingExisted()
, which will result in an HTTP 200 with the populated response body.- Specified by:
createServiceInstanceBinding
in interfaceServiceInstanceBindingService
- Parameters:
request
- containing the details of the request- Returns:
- a
CreateServiceInstanceBindingResponse
on successful processing of the request - See Also:
-
getServiceInstanceBinding
public reactor.core.publisher.Mono<GetServiceInstanceBindingResponse> getServiceInstanceBinding(GetServiceInstanceBindingRequest request) Description copied from interface:ServiceInstanceBindingService
Get the details of a binding to a service instance.- Specified by:
getServiceInstanceBinding
in interfaceServiceInstanceBindingService
- Parameters:
request
- containing the details of the request- Returns:
- a
GetServiceInstanceBindingResponse
on successful processing of the request
-
getLastOperation
public reactor.core.publisher.Mono<GetLastServiceBindingOperationResponse> getLastOperation(GetLastServiceBindingOperationRequest request) Description copied from interface:ServiceInstanceBindingService
Get the status of the last requested operation for a service instance.- Specified by:
getLastOperation
in interfaceServiceInstanceBindingService
- Parameters:
request
- containing the details of the request- Returns:
- a
GetLastServiceBindingOperationResponse
on successful processing of the request
-
deleteServiceInstanceBinding
public reactor.core.publisher.Mono<DeleteServiceInstanceBindingResponse> deleteServiceInstanceBinding(DeleteServiceInstanceBindingRequest request) Description copied from interface:ServiceInstanceBindingService
Delete a service instance binding.- Specified by:
deleteServiceInstanceBinding
in interfaceServiceInstanceBindingService
- Parameters:
request
- containing the details of the request- Returns:
- a
DeleteServiceInstanceBindingResponse
on successful processing of the request
-