Class ActionEventQueue

java.lang.Object
org.deltafi.common.action.ActionEventQueue

public class ActionEventQueue extends Object
Service for pushing and popping action events to a redis queue.
  • Constructor Details

  • Method Details

    • putActions

      public void putActions(List<ActionInput> actionInputs) throws redis.clients.jedis.exceptions.JedisConnectionException
      Throws:
      redis.clients.jedis.exceptions.JedisConnectionException
    • takeAction

      public ActionInput takeAction(String actionClassName) throws com.fasterxml.jackson.core.JsonProcessingException, redis.clients.jedis.exceptions.JedisConnectionException
      Request an ActionInput object from the ActionEvent queue for the specified action
      Parameters:
      actionClassName - Name of action for Action event request
      Returns:
      next Action on the queue for the given action name
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if the incoming event cannot be serialized
      redis.clients.jedis.exceptions.JedisConnectionException
    • putResult

      public void putResult(ActionEventInput result, String returnAddress) throws com.fasterxml.jackson.core.JsonProcessingException, redis.clients.jedis.exceptions.JedisConnectionException
      Submit a result object for action processing
      Parameters:
      result - ActionEventInput object for the result to be posted to the action queue
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if the outgoing event cannot be deserialized
      redis.clients.jedis.exceptions.JedisConnectionException
    • takeResult

      public ActionEventInput takeResult(String returnAddress) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • setHeartbeat

      public void setHeartbeat(String key)
    • drop

      public void drop(List<String> actionNames)