Class LimitResponse

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class LimitResponse
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    LimitResponse defines how to handle requests that can not be executed right now.
    • Constructor Detail

      • LimitResponse

        public LimitResponse​(QueuingConfiguration queuing,
                             @NonNull
                             @NonNull java.lang.String type)
      • LimitResponse

        public LimitResponse()
    • Method Detail

      • getType

        @NonNull
        public @NonNull java.lang.String getType()
        `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
      • setType

        public void setType​(@NonNull
                            @NonNull java.lang.String type)
        `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object