Package de.otto.synapse.messagestore
Class StaticValueIndexer
java.lang.Object
de.otto.synapse.messagestore.StaticValueIndexer
- All Implemented Interfaces:
Indexer
@Beta public class StaticValueIndexer extends java.lang.Object implements Indexer
An
Indexer that is creating a single Index by setting the indexed value to some static text.-
Constructor Summary
Constructors Constructor Description StaticValueIndexer(Index index, java.lang.String value)Creates aStaticValueIndexer. -
Method Summary
Modifier and Type Method Description java.lang.Stringcalc(Index index, MessageStoreEntry entry)Calculates the Index value from the message-store entry.com.google.common.collect.ImmutableSet<Index>getIndexes()Returns the indexes supported by this Indexer.MessageStoreEntryindex(MessageStoreEntry entry)booleansupports(Index index)
-
Constructor Details
-
StaticValueIndexer
Creates aStaticValueIndexer.- Parameters:
index- theIndexvalue- the static value that will be used to set the index
-
-
Method Details
-
getIndexes
Description copied from interface:IndexerReturns the indexes supported by this Indexer.- Specified by:
getIndexesin interfaceIndexer- Returns:
- Set of Index instances
-
supports
-
calc
Description copied from interface:IndexerCalculates the Index value from the message-store entry. -
index
-