Package de.otto.synapse.messagestore
Interface Indexer
- All Known Implementing Classes:
CalculatedValueIndexer,CompositeIndexer,StaticValueIndexer
@Beta
public interface Indexer
Indexes
message-store entries added to a MessageStore so it can later be
retrieved using MessageStore.stream(Index,String).-
Method Summary
Modifier and TypeMethodDescriptioncalc(Index index, MessageStoreEntry entry) Calculates the Index value from the message-store entry.com.google.common.collect.ImmutableSet<Index>Returns the indexes supported by this Indexer.index(MessageStoreEntry entry) boolean
-
Method Details
-
getIndexes
Returns the indexes supported by this Indexer.- Returns:
- Set of Index instances
-
supports
- Parameters:
index- the Index- Returns:
- true, if the Index is supported, false otherwise.
-
calc
Calculates the Index value from the message-store entry.- Parameters:
index- the Indexentry- the MessageStoreEntry- Returns:
- indexed value
-
index
-