Advertisement
Guest User

Untitled

a guest
Sep 15th, 2021
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. Thread thread = new Thread(future);
  2. thread.start();
  3.  Object validateKibanaAddress =null;
  4.         try {
  5.             validateKibanaAddress = future.get(3, TimeUnit.SECONDS);
  6.             if(validateKibanaAddress !=null) {
  7.                 flag = true;
  8.             }
  9.         }catch (Exception e) {
  10.             LOGGER.warn("validateKibanaAddress result is inactive",e);
  11.         }
  12.         return flag;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement