List of usage examples for java.util.concurrent BlockingDeque offer
boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException;
From source file:org.fim.internal.StateGenerator.java
private void enqueueFile(BlockingDeque<Path> filesToHashQueue, Path file) { try {/*from w w w . j ava2s . co m*/ filesToHashQueue.offer(file, 120, TimeUnit.MINUTES); } catch (InterruptedException ex) { Logger.error("Exception while enqueuing file '" + file + "'", ex, context.isDisplayStackTrace()); } }