Class ActionState

  • All Implemented Interfaces:
    org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
    Direct Known Subclasses:
    NopActionState

    public class ActionState
    extends Object
    implements org.elasticsearch.common.xcontent.ToXContentObject
    • Constructor Detail

      • ActionState

        public ActionState()
    • Method Detail

      • beforeExecution

        public ActionState.BasicState beforeExecution​(com.floragunn.searchsupport.util.duration.DurationExpression throttleDuration)
      • afterSuccessfulExecution

        public void afterSuccessfulExecution()
      • afterPositiveTriage

        public Ack afterPositiveTriage()
      • afterNegativeTriage

        public void afterNegativeTriage()
      • ack

        public void ack​(String user)
      • ackIfPossible

        public boolean ackIfPossible​(String user)
      • unackIfPossible

        public boolean unackIfPossible​(String user)
      • getAcked

        public Ack getAcked()
      • toXContent

        public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder,
                                                                            org.elasticsearch.common.xcontent.ToXContent.Params params)
                                                                     throws IOException
        Specified by:
        toXContent in interface org.elasticsearch.common.xcontent.ToXContent
        Throws:
        IOException
      • createFrom

        public static ActionState createFrom​(com.fasterxml.jackson.databind.JsonNode jsonNode)
      • getLastStatus

        public Status getLastStatus()
      • setLastStatus

        public void setLastStatus​(Status lastStatus)
      • getLastError

        public Instant getLastError()
      • setLastError

        public void setLastError​(Instant lastError)