ElasticScroll implements DatabaseScrolling { @Override public DatabaseScrolling withKeepAlive(final long time, final TimeUnit unit) { scrollTime.set(TimeValue.timeValueMillis(unit.toMillis(time))); return this; } ElasticScroll(
    final Client client,
    final SearchRequestBuilder search,
    final TimeValue timeValue); @Override DatabaseScrolling withSort(final FieldSortBuilder s); @Override DatabaseScrolling withScrollSize(final int size); @Override DatabaseScrolling withKeepAlive(final long time, final TimeUnit unit); @Override DatabaseScrolling withTypes(final String... types); @Override DatabaseScrolling withFetchSource(final boolean fetchSource); @Override DatabaseScrolling withQuery(final QueryBuilder query); @Override void scroll(final DatabaseScroll scroll);  }
@Test public void shouldWithKeepAlive() { scroll.withKeepAlive(1, TimeUnit.SECONDS); }