@VisibleForTesting public int getEncKeyQueueSize(String keyName) { return encKeyVersionQueue.getSize(keyName); }
@VisibleForTesting public int getEncKeyQueueSize(String keyName) { return encKeyVersionQueue.getSize(keyName); }
@VisibleForTesting public int getEncKeyQueueSize(String keyName) throws IOException { try { return encKeyVersionQueue.getSize(keyName); } catch (ExecutionException e) { throw new IOException(e); } }
@VisibleForTesting public int getEncKeyQueueSize(String keyName) throws IOException { try { return encKeyVersionQueue.getSize(keyName); } catch (ExecutionException e) { throw new IOException(e); } }
@VisibleForTesting public int getEncKeyQueueSize(String keyName) throws IOException { try { return encKeyVersionQueue.getSize(keyName); } catch (ExecutionException e) { throw new IOException(e); } }
@Override public Boolean get() { try { int size = vq.getSize("k1"); if (size != 10) { LOG.info("Current ValueQueue size is " + size); return false; } return true; } catch (ExecutionException e) { LOG.error("Exception when getSize.", e); return false; } } }, 100, 3000);
@Override public Boolean get() { try { int size = vq.getSize("k1"); if (size != 10) { LOG.info("Current ValueQueue size is " + size); return false; } return true; } catch (ExecutionException e) { LOG.error("Exception when getSize.", e); return false; } } }, 100, 3000);