Class ScheduledCommandCache.NoopScheduledCommandCache
java.lang.Object
io.camunda.zeebe.stream.api.scheduling.ScheduledCommandCache.NoopScheduledCommandCache
- All Implemented Interfaces:
ScheduledCommandCache,ScheduledCommandCache.ScheduledCommandCacheChanges,ScheduledCommandCache.StageableScheduledCommandCache,ScheduledCommandCache.StagedScheduledCommandCache
- Enclosing interface:
ScheduledCommandCache
public static final class ScheduledCommandCache.NoopScheduledCommandCache
extends Object
implements ScheduledCommandCache.StageableScheduledCommandCache, ScheduledCommandCache.StagedScheduledCommandCache
A dummy cache implementation which does nothing, i.e. caches nothing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.stream.api.scheduling.ScheduledCommandCache
ScheduledCommandCache.NoopScheduledCommandCache, ScheduledCommandCache.ScheduledCommandCacheChanges, ScheduledCommandCache.StageableScheduledCommandCache, ScheduledCommandCache.StagedScheduledCommandCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the given intent and key pair to the cache.voidclear()Clears the underlying cache of all intent/key pairs.booleanReturns true if the given intent and key pair is already cached.voidpersist()voidRemoves the given intent/key pair from the cache.stage()Returns a new stage for this cache, where modifications are temporary.
-
Constructor Details
-
NoopScheduledCommandCache
public NoopScheduledCommandCache()
-
-
Method Details
-
persist
public void persist()- Specified by:
persistin interfaceScheduledCommandCache.ScheduledCommandCacheChanges
-
add
Description copied from interface:ScheduledCommandCacheAdd the given intent and key pair to the cache.- Specified by:
addin interfaceScheduledCommandCache- Parameters:
intent- intent to cachekey- key to cache
-
contains
Description copied from interface:ScheduledCommandCacheReturns true if the given intent and key pair is already cached.- Specified by:
containsin interfaceScheduledCommandCache
-
remove
Description copied from interface:ScheduledCommandCacheRemoves the given intent/key pair from the cache.- Specified by:
removein interfaceScheduledCommandCache
-
clear
public void clear()Description copied from interface:ScheduledCommandCacheClears the underlying cache of all intent/key pairs.- Specified by:
clearin interfaceScheduledCommandCache
-
stage
Description copied from interface:ScheduledCommandCache.StageableScheduledCommandCacheReturns a new stage for this cache, where modifications are temporary.- Specified by:
stagein interfaceScheduledCommandCache.StageableScheduledCommandCache
-