/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the bulk flush interval (in milliseconds). * * @param interval bulk flush interval (in milliseconds). */ public Elasticsearch bulkFlushInterval(long interval) { internalProperties.putLong(CONNECTOR_BULK_FLUSH_INTERVAL, interval); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the amount of delay between each backoff attempt when flushing bulk requests (in milliseconds). * * <p>Make sure to enable backoff by selecting a strategy ({@link #bulkFlushBackoffConstant()} or * {@link #bulkFlushBackoffExponential()}). * * @param delay delay between each backoff attempt (in milliseconds). */ public Elasticsearch bulkFlushBackoffDelay(long delay) { internalProperties.putLong(CONNECTOR_BULK_FLUSH_BACKOFF_DELAY, delay); return this; }
@Override public final Map<String, String> toProperties() { final DescriptorProperties properties = new DescriptorProperties(); properties.putString(CONNECTOR_TYPE, type); properties.putLong(CONNECTOR_PROPERTY_VERSION, version); properties.putProperties(toConnectorProperties()); return properties.asMap(); }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the bulk flush interval (in milliseconds). * * @param interval bulk flush interval (in milliseconds). */ public Elasticsearch bulkFlushInterval(long interval) { internalProperties.putLong(CONNECTOR_BULK_FLUSH_INTERVAL, interval); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the bulk flush interval (in milliseconds). * * @param interval bulk flush interval (in milliseconds). */ public Elasticsearch bulkFlushInterval(long interval) { internalProperties.putLong(CONNECTOR_BULK_FLUSH_INTERVAL, interval); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the amount of delay between each backoff attempt when flushing bulk requests (in milliseconds). * * <p>Make sure to enable backoff by selecting a strategy ({@link #bulkFlushBackoffConstant()} or * {@link #bulkFlushBackoffExponential()}). * * @param delay delay between each backoff attempt (in milliseconds). */ public Elasticsearch bulkFlushBackoffDelay(long delay) { internalProperties.putLong(CONNECTOR_BULK_FLUSH_BACKOFF_DELAY, delay); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the amount of delay between each backoff attempt when flushing bulk requests (in milliseconds). * * <p>Make sure to enable backoff by selecting a strategy ({@link #bulkFlushBackoffConstant()} or * {@link #bulkFlushBackoffExponential()}). * * @param delay delay between each backoff attempt (in milliseconds). */ public Elasticsearch bulkFlushBackoffDelay(long delay) { internalProperties.putLong(CONNECTOR_BULK_FLUSH_BACKOFF_DELAY, delay); return this; }
@Override public final Map<String, String> toProperties() { final DescriptorProperties properties = new DescriptorProperties(); properties.putString(CONNECTOR_TYPE, type); properties.putLong(CONNECTOR_PROPERTY_VERSION, version); properties.putProperties(toConnectorProperties()); return properties.asMap(); }
@Override public final Map<String, String> toProperties() { final DescriptorProperties properties = new DescriptorProperties(); properties.putString(CONNECTOR_TYPE, type); properties.putLong(CONNECTOR_PROPERTY_VERSION, version); properties.putProperties(toConnectorProperties()); return properties.asMap(); }