Class Action<T extends Action>

Direct Known Subclasses:
BinaryResponse, DnsResponse, GrpcBidiResponse, GrpcStreamResponse, HttpClassCallback, HttpError, HttpForward, HttpForwardValidateAction, HttpForwardWithFallback, HttpLlmResponse, HttpObjectCallback, HttpOverrideForwardedRequest, HttpResponse, HttpSseResponse, HttpTemplate, HttpWebSocketResponse

public abstract class Action<T extends Action> extends ObjectWithJsonToString
Author:
jamesdbloom
  • Constructor Details

    • Action

      public Action()
  • Method Details

    • withDelay

      public T withDelay(Delay delay)
      The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
      Parameters:
      delay - a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
    • withDelay

      public T withDelay(TimeUnit timeUnit, long value)
      The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
      Parameters:
      timeUnit - the time unit, for example TimeUnit.SECONDS
      value - the number of time units to delay the response
    • getDelay

      public Delay getDelay()
    • withPrimary

      public T withPrimary(boolean primary)
    • isPrimary

      public boolean isPrimary()
    • getExpectationId

      public String getExpectationId()
    • setExpectationId

      public Action setExpectationId(String expectationId)
    • getType

      public abstract Action.Type getType()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class ObjectWithReflectiveEqualsHashCodeToString