Class AsyncServiceBrokerResponse

java.lang.Object
org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
Direct Known Subclasses:
CreateServiceInstanceBindingResponse, CreateServiceInstanceResponse, DeleteServiceInstanceBindingResponse, DeleteServiceInstanceResponse, UpdateServiceInstanceResponse

public class AsyncServiceBrokerResponse extends Object
Details of a response that support asynchronous behavior.
Author:
Scott Frederick, Roy Clarkson
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
    protected final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AsyncServiceBrokerResponse(boolean async, String operation)
    Create a new AsyncServiceBrokerResponse.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Is another object type compatible with this object.
    boolean
     
    Get a description of the operation being performed in support of an asynchronous response.
    int
     
    boolean
    Get a boolean value indicating whether the requested operation is being performed synchronously or asynchronously.
     
    static void
    Validate the length of the operation string to be within the 10,000 character limit.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • async

      protected final boolean async
    • operation

      protected final String operation
  • Constructor Details

    • AsyncServiceBrokerResponse

      protected AsyncServiceBrokerResponse(boolean async, String operation)
      Create a new AsyncServiceBrokerResponse.
      Parameters:
      async - is the operation asynchronous
      operation - 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

      public String getOperation()
      Get a description of the operation being performed in support of an asynchronous response.
      Returns:
      the operation description
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      public boolean canEqual(Object other)
      Is another object type compatible with this object.
      Parameters:
      other - the other object
      Returns:
      true of compatible
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateOperationLength

      public static void validateOperationLength(String operation)
      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