-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathServiceInstanceBindingService.java
More file actions
36 lines (31 loc) · 1.48 KB
/
ServiceInstanceBindingService.java
File metadata and controls
36 lines (31 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.cloudfoundry.community.servicebroker.service;
import org.cloudfoundry.community.servicebroker.exception.*;
import org.cloudfoundry.community.servicebroker.model.*;
/**
* Handles bindings to service instances.
*
* @author sgreenberg@gopivotal.com
*/
public interface ServiceInstanceBindingService {
/**
* Create a new binding to a service instance.
* @param createServiceInstanceBindingRequest containing parameters sent from Cloud Controller
* @return The newly created ServiceInstanceBinding
* @throws ServiceInstanceBindingExistsException if the same binding already exists
* @throws ServiceBrokerException on internal failure
*/
ServiceInstanceBinding createServiceInstanceBinding(
CreateServiceInstanceBindingRequest createServiceInstanceBindingRequest)
throws ServiceInstanceBindingExistsException, ServiceBrokerException;
/**
* Delete the service instance binding. If a binding doesn't exist,
* return null.
* @param deleteServiceInstanceBindingRequest containing parameters sent from Cloud Controller
* @return The deleted ServiceInstanceBinding or null if one does not exist
* @throws ServiceBrokerException on internal failure
* @throws ServiceBrokerAsyncRequiredException if we must use an async comparable cloud controller
*/
ServiceInstanceBinding deleteServiceInstanceBinding(
DeleteServiceInstanceBindingRequest deleteServiceInstanceBindingRequest)
throws ServiceBrokerException, ServiceBrokerAsyncRequiredException;
}