Package com.facebook.buck.rules.keys
Interface RuleKeyFactory<RULE_KEY>
-
- All Known Subinterfaces:
RuleKeyFactoryWithDiagnostics<RULE_KEY>
- All Known Implementing Classes:
ContentAgnosticRuleKeyFactory
,DefaultRuleKeyFactory
,InputBasedRuleKeyFactory
public interface RuleKeyFactory<RULE_KEY>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RULE_KEY
build(BuildEngineAction action)
Creates a newRULE_KEY
for the givenBuildEngineAction
.default RULE_KEY
getFromCache(BuildEngineAction action)
Returns aRULE_KEY
from an internal cache, if possible.default Optional<Long>
getInputSizeLimit()
-
-
-
Method Detail
-
build
RULE_KEY build(BuildEngineAction action)
Creates a newRULE_KEY
for the givenBuildEngineAction
. In most casesRULE_KEY
is going to beRuleKey
, but it can be anything really.- Parameters:
action
- The build rule to create the key for.- Returns:
- A rule key.
-
getFromCache
@Nullable default RULE_KEY getFromCache(BuildEngineAction action)
Returns aRULE_KEY
from an internal cache, if possible. If a non-null value is returned, it is guaranteed to be he same as ifbuild(com.facebook.buck.core.build.action.BuildEngineAction)
were called instead.- Parameters:
action
-
-
-