Class 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)  
    • Field Detail

      • SLEEP_TIME

        public static long[] SLEEP_TIME
    • 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)