public enum JournalInitialPosition extends Enum<JournalInitialPosition>
See:
Sources.mapJournal(java.lang.String, com.hazelcast.jet.pipeline.JournalInitialPosition, com.hazelcast.function.FunctionEx<? super com.hazelcast.map.EventJournalMapEvent<K, V>, ? extends T>, com.hazelcast.function.PredicateEx<? super com.hazelcast.map.EventJournalMapEvent<K, V>>)
Sources.remoteMapJournal(java.lang.String, com.hazelcast.client.config.ClientConfig, com.hazelcast.jet.pipeline.JournalInitialPosition, com.hazelcast.function.FunctionEx<? super com.hazelcast.map.EventJournalMapEvent<K, V>, ? extends T>, com.hazelcast.function.PredicateEx<? super com.hazelcast.map.EventJournalMapEvent<K, V>>)
Sources.cacheJournal(java.lang.String, com.hazelcast.jet.pipeline.JournalInitialPosition, com.hazelcast.function.FunctionEx<? super com.hazelcast.cache.EventJournalCacheEvent<K, V>, ? extends T>, com.hazelcast.function.PredicateEx<? super com.hazelcast.cache.EventJournalCacheEvent<K, V>>)
Sources.remoteCacheJournal(java.lang.String, com.hazelcast.client.config.ClientConfig, com.hazelcast.jet.pipeline.JournalInitialPosition, com.hazelcast.function.FunctionEx<? super com.hazelcast.cache.EventJournalCacheEvent<K, V>, ? extends T>, com.hazelcast.function.PredicateEx<? super com.hazelcast.cache.EventJournalCacheEvent<K, V>>)
Enum Constant and Description |
---|
START_FROM_CURRENT
Skip all the history and emit only the events that occur after
connecting to the journal.
|
START_FROM_OLDEST
Start from the oldest event still available.
|
Modifier and Type | Method and Description |
---|---|
static JournalInitialPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JournalInitialPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JournalInitialPosition START_FROM_OLDEST
public static final JournalInitialPosition START_FROM_CURRENT
public static JournalInitialPosition[] values()
for (JournalInitialPosition c : JournalInitialPosition.values()) System.out.println(c);
public static JournalInitialPosition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022 Hazelcast, Inc.. All rights reserved.