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
ConstructorsConstructorDescriptionServiceInstanceBindingEventService(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:ServiceInstanceBindingServiceCreate 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:
createServiceInstanceBindingin interfaceServiceInstanceBindingService- Parameters:
request- containing the details of the request- Returns:
- a
CreateServiceInstanceBindingResponseon successful processing of the request - See Also:
-
getServiceInstanceBinding
public reactor.core.publisher.Mono<GetServiceInstanceBindingResponse> getServiceInstanceBinding(GetServiceInstanceBindingRequest request) Description copied from interface:ServiceInstanceBindingServiceGet the details of a binding to a service instance.- Specified by:
getServiceInstanceBindingin interfaceServiceInstanceBindingService- Parameters:
request- containing the details of the request- Returns:
- a
GetServiceInstanceBindingResponseon successful processing of the request
-
getLastOperation
public reactor.core.publisher.Mono<GetLastServiceBindingOperationResponse> getLastOperation(GetLastServiceBindingOperationRequest request) Description copied from interface:ServiceInstanceBindingServiceGet the status of the last requested operation for a service instance.- Specified by:
getLastOperationin interfaceServiceInstanceBindingService- Parameters:
request- containing the details of the request- Returns:
- a
GetLastServiceBindingOperationResponseon successful processing of the request
-
deleteServiceInstanceBinding
public reactor.core.publisher.Mono<DeleteServiceInstanceBindingResponse> deleteServiceInstanceBinding(DeleteServiceInstanceBindingRequest request) Description copied from interface:ServiceInstanceBindingServiceDelete a service instance binding.- Specified by:
deleteServiceInstanceBindingin interfaceServiceInstanceBindingService- Parameters:
request- containing the details of the request- Returns:
- a
DeleteServiceInstanceBindingResponseon successful processing of the request
-