@Beta
public class Indexers
extends java.lang.Object
Indexer instances.| Modifier and Type | Method and Description |
|---|---|
static Indexer |
channelNameIndexer()
Returns an Indexer that is indexing
TextMessage by Key.partitionKey(). |
static Indexer |
composite(com.google.common.collect.ImmutableList<Indexer> indexers)
Returns a composite Indexer that is able to support several indexes.
|
static Indexer |
composite(Indexer... indexers)
Returns a composite Indexer that is able to support several indexes.
|
static Indexer |
journalKeyIndexer() |
static Indexer |
noOpIndexer() |
static Indexer |
originIndexer(java.lang.String origin)
Returns an Indexer that is indexing all entries with static value that is identifying the origin of some message.
|
static Indexer |
partitionKeyIndexer()
Returns an Indexer that is indexing
TextMessage by Key.partitionKey(). |
static Indexer |
serviceInstanceIndexer(java.lang.String serviceInstance)
Returns an Indexer that is indexing all entries with static value that is identifying the service-instance that
has added the message to the
MessageStore. |
public static Indexer noOpIndexer()
public static Indexer composite(com.google.common.collect.ImmutableList<Indexer> indexers)
indexers - the list of Indexerspublic static Indexer composite(Indexer... indexers)
indexers - the list of Indexerspublic static Indexer originIndexer(@Nonnull java.lang.String origin)
The origin can be the name of the service sending the message, or some other identifier like, for example 'Snapshot'.
origin - the origin of the indexed messagepublic static Indexer serviceInstanceIndexer(@Nonnull java.lang.String serviceInstance)
MessageStore.
In most cases, a hostname:port or service-name@hostname:port value is sufficient to
identify the instance of some service
serviceInstance - a string identifying a single instance of a cluster.public static Indexer partitionKeyIndexer()
TextMessage by Key.partitionKey().public static Indexer journalKeyIndexer()
public static Indexer channelNameIndexer()
TextMessage by Key.partitionKey().