Class AsyncServiceBrokerResponse
java.lang.Object
org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
- Direct Known Subclasses:
CreateServiceInstanceBindingResponse
,CreateServiceInstanceResponse
,DeleteServiceInstanceBindingResponse
,DeleteServiceInstanceResponse
,UpdateServiceInstanceResponse
Details of a response that support asynchronous behavior.
- Author:
- Scott Frederick, Roy Clarkson
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AsyncServiceBrokerResponse
(boolean async, String operation) Create a new AsyncServiceBrokerResponse. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Is another object type compatible with this object.boolean
Get a description of the operation being performed in support of an asynchronous response.int
hashCode()
boolean
isAsync()
Get a boolean value indicating whether the requested operation is being performed synchronously or asynchronously.toString()
static void
validateOperationLength
(String operation) Validate the length of the operation string to be within the 10,000 character limit.
-
Field Details
-
async
protected final boolean async -
operation
-
-
Constructor Details
-
AsyncServiceBrokerResponse
Create a new AsyncServiceBrokerResponse.- Parameters:
async
- is the operation asynchronousoperation
- an identifier representing the operation in progress- Throws:
IllegalArgumentException
- if operation length exceeds 10,000 characters
-
-
Method Details
-
isAsync
public boolean isAsync()Get a boolean value indicating whether the requested operation is being performed synchronously or asynchronously.- Returns:
- the boolean value
-
getOperation
Get a description of the operation being performed in support of an asynchronous response.- Returns:
- the operation description
-
equals
-
canEqual
Is another object type compatible with this object.- Parameters:
other
- the other object- Returns:
- true of compatible
-
hashCode
public int hashCode() -
toString
-
validateOperationLength
Validate the length of the operation string to be within the 10,000 character limit.- Parameters:
operation
- an identifier representing the operation in progress- Throws:
IllegalArgumentException
- if the operation is longer than 10,000 characters
-