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
FieldsModifier and TypeFieldDescriptionstatic final StringAsync request parameter key.protected booleanFields 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
ConstructorsModifierConstructorDescriptionprotectedCreate a new AsyncServiceBrokerRequest.protectedAsyncServiceBrokerRequest(boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Create a new AsyncServiceBrokerRequest. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs another object type compatible with this object.booleaninthashCode()booleanGet the value indicating whether the platform allows the broker to complete the request asynchronously.voidsetAsyncAccepted(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
falsevalue indicates that clients do not allow asynchronous processing of requests, atruevalue 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:
equalsin classServiceBrokerRequest
-
canEqual
Description copied from class:ServiceBrokerRequestIs another object type compatible with this object.- Overrides:
canEqualin classServiceBrokerRequest- Parameters:
other- the other object- Returns:
- true of compatible
-
hashCode
public int hashCode()- Overrides:
hashCodein classServiceBrokerRequest
-
toString
- Overrides:
toStringin classServiceBrokerRequest
-