Class BulkRequest<T>
- java.lang.Object
-
- org.opennms.features.jest.client.bulk.BulkRequest<T>
-
public class BulkRequest<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
SLEEP_TIME
-
Constructor Summary
Constructors Constructor Description BulkRequest(io.searchbox.client.JestClient client, java.util.List<T> documents, java.util.function.Function<java.util.List<T>,BulkWrapper> documentToBulkTransformer, int retryCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BulkResultWrapper
execute()
static long
getSleepTime(int retry)
-
-
-
Constructor Detail
-
BulkRequest
public BulkRequest(io.searchbox.client.JestClient client, java.util.List<T> documents, java.util.function.Function<java.util.List<T>,BulkWrapper> documentToBulkTransformer, int retryCount)
-
-
Method Detail
-
execute
public BulkResultWrapper execute() throws java.io.IOException
- Throws:
java.io.IOException
-
getSleepTime
public static long getSleepTime(int retry)
-
-