インタフェース TimeoutAndUnit
public interface TimeoutAndUnit
This interface instance is a pair of timeout and TimeUnit.
- 関連項目:
TimeUnit
-
メソッドの概要
修飾子とタイプ メソッド 説明 default long
getMilliSeconds()
Returns Milli-Seconds.static TimeoutAndUnit
of(double seconds)
Instance builder.static TimeoutAndUnit
of(float seconds)
Instance builder.static TimeoutAndUnit
of(int seconds)
Instance builder.static TimeoutAndUnit
of(long seconds)
Instance builder.static TimeoutAndUnit
of(long timeout, java.util.concurrent.TimeUnit unit)
Instance builder.long
timeout()
Returns timeout.java.util.concurrent.TimeUnit
unit()
Returns TimeUnit.
-
メソッドの詳細
-
timeout
long timeout()Returns timeout.- 戻り値:
- timeout.
-
unit
java.util.concurrent.TimeUnit unit()Returns TimeUnit.- 戻り値:
- TImeUnit.
-
getMilliSeconds
default long getMilliSeconds()Returns Milli-Seconds.- 戻り値:
- Milli-Seconds.
-
of
Instance builder.- パラメータ:
timeout
- the long valueunit
- the TimeUnit- 戻り値:
- new-instance
-
of
Instance builder.- パラメータ:
seconds
- the int value- 戻り値:
- new-instance
-
of
Instance builder.- パラメータ:
seconds
- the long value- 戻り値:
- new-instance
-
of
Instance builder.- パラメータ:
seconds
- the float value- 戻り値:
- new-instance
-
of
Instance builder.- パラメータ:
seconds
- the double value- 戻り値:
- new-instance
-