类 ForwardingTimeout
java.lang.Object
com.lark.oapi.okio.Timeout
com.lark.oapi.okio.ForwardingTimeout
A
Timeout which forwards calls to another. Useful for subclassing.-
字段概要
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Clears the deadline.Clears the timeout.longReturns the nano time when the deadline will be reached.deadlineNanoTime(long deadlineNanoTime) Sets the nano time when the deadline will be reached.final Timeoutdelegate()Timeoutinstance to which this instance is currently delegating.booleanReturns true if a deadline is enabled.final ForwardingTimeoutsetDelegate(Timeout delegate) voidThrows anInterruptedIOExceptionif the deadline has been reached or if the current thread has been interrupted.Wait at mosttimeouttime before aborting an operation.longReturns the timeout in nanoseconds, or0for no timeout.从类继承的方法 com.lark.oapi.okio.Timeout
deadline, waitUntilNotified
-
构造器详细资料
-
ForwardingTimeout
-
-
方法详细资料
-
delegate
Timeoutinstance to which this instance is currently delegating. -
setDelegate
-
timeout
从类复制的说明:TimeoutWait at mosttimeouttime before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.If
timeout == 0, operations will run indefinitely. (Operating system timeouts may still apply.) -
timeoutNanos
public long timeoutNanos()从类复制的说明:TimeoutReturns the timeout in nanoseconds, or0for no timeout.- 覆盖:
timeoutNanos在类中Timeout
-
hasDeadline
public boolean hasDeadline()从类复制的说明:TimeoutReturns true if a deadline is enabled.- 覆盖:
hasDeadline在类中Timeout
-
deadlineNanoTime
public long deadlineNanoTime()从类复制的说明:TimeoutReturns the nano time when the deadline will be reached.- 覆盖:
deadlineNanoTime在类中Timeout
-
deadlineNanoTime
从类复制的说明:TimeoutSets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.- 覆盖:
deadlineNanoTime在类中Timeout
-
clearTimeout
从类复制的说明:TimeoutClears the timeout. Operating system timeouts may still apply.- 覆盖:
clearTimeout在类中Timeout
-
clearDeadline
从类复制的说明:TimeoutClears the deadline.- 覆盖:
clearDeadline在类中Timeout
-
throwIfReached
从类复制的说明:TimeoutThrows anInterruptedIOExceptionif the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.- 覆盖:
throwIfReached在类中Timeout- 抛出:
IOException
-