@Deprecated public abstract static class Callables.TimeoutCallable<T,EX extends Exception> extends Object implements Callables.CheckedCallable<T,EX>
Constructor and Description |
---|
TimeoutCallable(int timeoutMillis)
Deprecated.
|
TimeoutCallable(long deadline)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
T |
call()
Deprecated.
the method that is retried.
|
abstract T |
call(long deadline)
Deprecated.
|
long |
getDeadline()
Deprecated.
|
public TimeoutCallable(int timeoutMillis)
public TimeoutCallable(long deadline)
public final T call() throws EX extends Exception, InterruptedException, TimeoutException
Callables.CheckedCallable
call
in interface Callable<T>
call
in interface Callables.CheckedCallable<T,EX extends Exception>
EX extends Exception
InterruptedException
TimeoutException
public abstract T call(long deadline) throws EX extends Exception, InterruptedException, TimeoutException
deadline
- millis since epoch.EX extends Exception
InterruptedException
TimeoutException
public final long getDeadline()
Copyright © 2021 SPF4J. All rights reserved.