Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. @Suspendable
  2. void fiberBlockingIndex(IndexRequest indexRequest) throws Exception {
  3. new IndexAsync(elasticsearchClient, indexRequest, RequestOptions.DEFAULT) {
  4. protected void requestAsync() {
  5. elasticsearchClient.getClient().indexAsync(indexRequest, RequestOptions.DEFAULT, this);
  6. }
  7. }.run(1000, TimeUnit.MILLISECONDS);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement