Class AsyncServiceBrokerRequest
java.lang.Object
org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
- Direct Known Subclasses:
AsyncParameterizedServiceInstanceRequest
,DeleteServiceInstanceBindingRequest
,DeleteServiceInstanceRequest
Details of a request that supports asynchronous operations.
- Author:
- Scott Frederick, Roy Clarkson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Async request parameter key.protected boolean
Fields inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
API_INFO_LOCATION_HEADER, apiInfoLocation, BINDING_ID_PATH_VARIABLE, INSTANCE_ID_PATH_VARIABLE, ORIGINATING_IDENTITY_HEADER, originatingIdentity, PLAN_ID_PARAMETER, PLATFORM_INSTANCE_ID_VARIABLE, platformInstanceId, REQUEST_IDENTITY_HEADER, requestIdentity, SERVICE_ID_PARAMETER
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new AsyncServiceBrokerRequest.protected
AsyncServiceBrokerRequest
(boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Create a new AsyncServiceBrokerRequest. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Is another object type compatible with this object.boolean
int
hashCode()
boolean
Get the value indicating whether the platform allows the broker to complete the request asynchronously.void
setAsyncAccepted
(boolean asyncAccepted) This method is intended to be used internally only; use a builder to construct an object of this type and set all field values.toString()
Methods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
-
Field Details
-
ASYNC_REQUEST_PARAMETER
Async request parameter key.- See Also:
-
asyncAccepted
protected transient boolean asyncAccepted
-
-
Constructor Details
-
AsyncServiceBrokerRequest
protected AsyncServiceBrokerRequest()Create a new AsyncServiceBrokerRequest. -
AsyncServiceBrokerRequest
protected AsyncServiceBrokerRequest(boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Create a new AsyncServiceBrokerRequest.- Parameters:
asyncAccepted
- does the platform accept asynchronous requestsplatformInstanceId
- the platform instance IDapiInfoLocation
- location of the API info endpoint of the platform instanceoriginatingIdentity
- identity of the user that initiated the request from the platformrequestIdentity
- identity of the request sent from the platform
-
-
Method Details
-
isAsyncAccepted
public boolean isAsyncAccepted()Get the value indicating whether the platform allows the broker to complete the request asynchronously.This value is set from the async_accepted request parameter of the request from the platform.
A
false
value indicates that clients do not allow asynchronous processing of requests, atrue
value indicates that clients do allow asynchronous processing.- Returns:
- the boolean value
-
setAsyncAccepted
public void setAsyncAccepted(boolean asyncAccepted) This method is intended to be used internally only; use a builder to construct an object of this type and set all field values.- Parameters:
asyncAccepted
- the value indicating whether the platform allows the broker to complete the request asynchronously
-
equals
- Overrides:
equals
in classServiceBrokerRequest
-
canEqual
Description copied from class:ServiceBrokerRequest
Is another object type compatible with this object.- Overrides:
canEqual
in classServiceBrokerRequest
- Parameters:
other
- the other object- Returns:
- true of compatible
-
hashCode
public int hashCode()- Overrides:
hashCode
in classServiceBrokerRequest
-
toString
- Overrides:
toString
in classServiceBrokerRequest
-