Interface ContentionError

All Superinterfaces:
ErrorObject

public interface ContentionError extends ErrorObject
ContentionError
Example to create an instance using the builder pattern

     ContentionError contentionError = ContentionError.builder()
             .message("{message}")
             .build()
 
  • Field Details

  • Method Details

    • of

      static ContentionError of()
      factory method
      Returns:
      instance of ContentionError
    • of

      static ContentionError of(ContentionError template)
      factory method to create a shallow copy ContentionError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static ContentionError deepCopy(@Nullable ContentionError template)
      factory method to create a deep copy of ContentionError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ContentionErrorBuilder builder()
      builder factory method for ContentionError
      Returns:
      builder
    • builder

      static ContentionErrorBuilder builder(ContentionError template)
      create builder for ContentionError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withContentionError

      default <T> T withContentionError(Function<ContentionError,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ContentionError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference