All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebean.annotation.DocStoreMode Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.annotation;

/**
 * Defines the behavior options when a Insert, Update or Delete event occurs
 * on a bean with an associated ElasticSearch index.
 * 

* For some indexes or some transactions it can be beneficial to queue the event * for later processing rather than look to update ElasticSearch at that time. *

*/ public enum DocStoreMode { /** * Add the event to the queue for processing later (delaying the update to the document store). */ QUEUE, /** * Update the document store when transaction succeeds. */ UPDATE, /** * Ignore the event and not update the document store. *

* This can be used on a index or for a transaction where you want to have more * manual programmatic control over the updating of the document store. Say you want to * IGNORE on a particular transaction and instead manually queue a bulk update. *

*/ IGNORE, /** * The actual mode of QUEUE, UPDATE or IGNORE is set from the default configuration. */ DEFAULT }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy