public interface RuleKeyFactory<RULE_KEY>
Modifier and Type | Method and Description |
---|---|
RULE_KEY |
build(BuildEngineAction action)
Creates a new
RULE_KEY for the given BuildEngineAction . |
default RULE_KEY |
getFromCache(BuildEngineAction action)
Returns a
RULE_KEY from an internal cache, if possible. |
default Optional<Long> |
getInputSizeLimit() |
RULE_KEY build(BuildEngineAction action)
RULE_KEY
for the given BuildEngineAction
. In most cases RULE_KEY
is going to be RuleKey
, but it can be anything really.action
- The build rule to create the key for.@Nullable default RULE_KEY getFromCache(BuildEngineAction action)
RULE_KEY
from an internal cache, if possible. If a non-null value is
returned, it is guaranteed to be he same as if build(com.facebook.buck.core.build.action.BuildEngineAction)
were called instead.action
-