Skip to content

Commit 4ae6231

Browse files
committed
Remove obsolete callNonInterruptible() method
1 parent 85241a4 commit 4ae6231

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/java/org/embulk/output/sftp/utils/TimedCallable.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package org.embulk.output.sftp.utils;
22

3-
import org.embulk.spi.Exec;
4-
import org.slf4j.Logger;
5-
63
import java.util.concurrent.Callable;
74
import java.util.concurrent.ExecutionException;
85
import java.util.concurrent.ExecutorService;
@@ -14,18 +11,6 @@
1411
public abstract class TimedCallable<V> implements Callable<V>
1512
{
1613
private static final ExecutorService THREAD_POOL = Executors.newCachedThreadPool();
17-
private Logger logger = Exec.getLogger(getClass());
18-
19-
public V callNonInterruptible(long timeout, TimeUnit timeUnit)
20-
{
21-
try {
22-
return call(timeout, timeUnit);
23-
}
24-
catch (Exception e) {
25-
logger.warn("Time-out call failed, ignore and resume", e);
26-
return null;
27-
}
28-
}
2914

3015
public V call(long timeout, TimeUnit timeUnit)
3116
throws InterruptedException, ExecutionException, TimeoutException

0 commit comments

Comments
 (0)