-
public interface ICondition
-
-
Method Summary
Modifier and Type Method Description abstract BooleanisMet(Map<String, Map<IConsistencyKeyEnum, RywData>> indexedTokens)Define a condition that "unblocks" execution e.g. abstract RywDatagetRywData(Map<String, Map<IConsistencyKeyEnum, RywData>> indexedTokens)Used to process tokens according to their format & return the newest token. abstract StringgetId()Every implementation should define a unique ID & make available via a companion object for ease of use -
-
Method Detail
-
isMet
abstract Boolean isMet(Map<String, Map<IConsistencyKeyEnum, RywData>> indexedTokens)
Define a condition that "unblocks" execution e.g. we have token (A && B) || A
-
getRywData
abstract RywData getRywData(Map<String, Map<IConsistencyKeyEnum, RywData>> indexedTokens)
Used to process tokens according to their format & return the newest token. e.g. numeric strings would be compared differently from JWT tokens
-
-
-
-