Class DemandMatcherAll
- java.lang.Object
-
- csw.command.client.models.matchers.DemandMatcherAll
-
- All Implemented Interfaces:
StateMatcher
,java.io.Serializable
,scala.Equals
,scala.Product
,scala.Serializable
public class DemandMatcherAll extends java.lang.Object implements StateMatcher, scala.Product, scala.Serializable
A StateMatcher which matches the CurrentState against the DemandStateparam: demand a DemandState that will provide the items for determining completion with the CurrentState param: timeout a timeout for which the matching should be executed. Once the timeout occurs, complete the match with MatchFailed response and appropriate failure exception.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DemandMatcherAll(DemandState demand, akka.util.Timeout timeout)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract static boolean
canEqual(java.lang.Object that)
boolean
check(CurrentState current)
A predicate to match the current stateDemandState
demand()
abstract static boolean
equals(java.lang.Object that)
Prefix
prefix()
The prefix of the destination component for which the current state is being matchedabstract static int
productArity()
abstract static java.lang.Object
productElement(int n)
static scala.collection.Iterator<java.lang.Object>
productIterator()
static java.lang.String
productPrefix()
StateName
stateName()
The name of the state to match forakka.util.Timeout
timeout()
The maximum duration for which the matching is executed if not completed either successfully or unsuccessfully
-
-
-
Constructor Detail
-
DemandMatcherAll
public DemandMatcherAll(DemandState demand, akka.util.Timeout timeout)
-
-
Method Detail
-
canEqual
public abstract static boolean canEqual(java.lang.Object that)
-
equals
public abstract static boolean equals(java.lang.Object that)
-
productElement
public abstract static java.lang.Object productElement(int n)
-
productArity
public abstract static int productArity()
-
productIterator
public static scala.collection.Iterator<java.lang.Object> productIterator()
-
productPrefix
public static java.lang.String productPrefix()
-
demand
public DemandState demand()
-
timeout
public akka.util.Timeout timeout()
Description copied from interface:StateMatcher
The maximum duration for which the matching is executed if not completed either successfully or unsuccessfully- Specified by:
timeout
in interfaceStateMatcher
- Returns:
- (undocumented)
-
prefix
public Prefix prefix()
The prefix of the destination component for which the current state is being matched- Specified by:
prefix
in interfaceStateMatcher
- Returns:
- the prefix of destination component
-
stateName
public StateName stateName()
The name of the state to match for- Specified by:
stateName
in interfaceStateMatcher
- Returns:
- the name of the state
-
check
public boolean check(CurrentState current)
A predicate to match the current state- Specified by:
check
in interfaceStateMatcher
- Parameters:
current
- current state to be matched as represented byCurrentState
- Returns:
- true if match is successful, false otherwise
-
-