Interface OrderedExecution
public interface OrderedExecution
Provides an execution order key that execution facilities can use to group related executions.
Executions with equal non-null keys can be treated as belonging to the same ordered execution group. The exact ordering and execution semantics are defined by the facility that consumes this interface. Implementations should normally return stable, low-cardinality keys.
A class object is often a natural key. For example:
@Override
public Object getExecutionOrderKey()
{
return MySensibleOperation.class;
}
- Since:
- 3.31
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionReturns the key that identifies the ordered execution group for this object.
-
Method Details
-
getExecutionOrderKey
Object getExecutionOrderKey()Returns the key that identifies the ordered execution group for this object.- Returns:
- the execution order key, or
nullif no ordering is requested
-