java.lang.Object
org.springframework.data.redis.core.ExpireChanges<K>
Value Object linking a number of keys to their
ExpireChanges.ExpiryChangeState retaining the order of the original source.
Dedicated higher level methods interpret raw values retrieved from a Redis Client.
- Since:
- 3.5
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanallMach(Predicate<ExpireChanges.ExpiryChangeState> predicate) booleanallOk()expired()missed()static <K> ExpireChanges<K>Factory Method to createExpireChangesfrom raw sources.ok()skipped()
-
Method Details
-
of
Factory Method to createExpireChangesfrom raw sources.- Type Parameters:
K- the key type used- Parameters:
fields- the fields to associated with the raw values in states. Defines the actual order of entries withinExpireChanges.states- the raw Redis state change values.- Returns:
- new instance of
ExpireChanges.
-
stateChanges
- Returns:
- an ordered
Listof the status changes.
-
stateOf
- Returns:
- the status change for the given key, or null if
ExpireChanges.ExpiryChangeStatedoes not contain an entry for it.
-
allOk
public boolean allOk()- Returns:
- true if all changes are
ExpireChanges.ExpiryChangeState.OK.
-
allChanged
public boolean allChanged()- Returns:
- true if all changes are either ok
ExpireChanges.ExpiryChangeState.OKorExpireChanges.ExpiryChangeState.EXPIRED.
-
ok
- Returns:
- an ordered list of if all changes are
ExpireChanges.ExpiryChangeState.OK.
-
expired
- Returns:
- an ordered list of if all changes are
ExpireChanges.ExpiryChangeState.EXPIRED.
-
missed
- Returns:
- an ordered list of if all changes are
ExpireChanges.ExpiryChangeState.DOES_NOT_EXIST.
-
skipped
- Returns:
- an ordered list of if all changes are
ExpireChanges.ExpiryChangeState.CONDITION_NOT_MET.
-
allMach
-