io.camunda.exporter.store.BatchRequest Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.exporter.store;
import io.camunda.exporter.exceptions.PersistenceException;
import io.camunda.webapps.schema.entities.ExporterEntity;
import java.util.Map;
/** A {@link BatchRequest} contains updates to one or more {@link ExporterEntity} */
@SuppressWarnings("rawtypes")
public interface BatchRequest {
BatchRequest add(String index, ExporterEntity entity);
BatchRequest addWithId(String index, String id, ExporterEntity entity);
BatchRequest addWithRouting(String index, ExporterEntity entity, String routing);
BatchRequest upsert(
String index, String id, ExporterEntity entity, Map updateFields);
BatchRequest upsertWithRouting(
String index,
String id,
ExporterEntity entity,
Map updateFields,
String routing);
BatchRequest upsertWithScript(
String index,
String id,
ExporterEntity entity,
String script,
Map parameters);
BatchRequest upsertWithScriptAndRouting(
String index,
String id,
ExporterEntity entity,
String script,
Map parameters,
String routing);
BatchRequest update(String index, String id, Map updateFields);
BatchRequest update(String index, String id, ExporterEntity entity) throws PersistenceException;
BatchRequest updateWithScript(
String index, String id, String script, Map parameters);
BatchRequest delete(String index, String id);
/**
* Applies all updates in this batch.
*
* @throws PersistenceException if an error occurs during the execution
*/
void execute() throws PersistenceException;
void executeWithRefresh() throws PersistenceException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy