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