Class TimeoutSettings
- java.lang.Object
-
- org.apache.pekko.coordination.lease.TimeoutSettings
-
public final class TimeoutSettings extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TimeoutSettings(scala.concurrent.duration.FiniteDuration heartbeatInterval, scala.concurrent.duration.FiniteDuration heartbeatTimeout, scala.concurrent.duration.FiniteDuration operationTimeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeoutSettings
apply(com.typesafe.config.Config config)
java.time.Duration
getHeartbeatInterval()
Java APIjava.time.Duration
getHeartbeatTimeout()
Java APIjava.time.Duration
getOperationTimeout()
Java APIscala.concurrent.duration.FiniteDuration
heartbeatInterval()
scala.concurrent.duration.FiniteDuration
heartbeatTimeout()
scala.concurrent.duration.FiniteDuration
operationTimeout()
java.lang.String
toString()
TimeoutSettings
withHeartbeatInterval(java.time.Duration heartbeatInterval)
Java APITimeoutSettings
withHeartbeatInterval(scala.concurrent.duration.FiniteDuration heartbeatInterval)
TimeoutSettings
withHeartbeatTimeout(java.time.Duration heartbeatTimeout)
Java APITimeoutSettings
withHeartbeatTimeout(scala.concurrent.duration.FiniteDuration heartbeatTimeout)
TimeoutSettings
withOperationTimeout(java.time.Duration operationTimeout)
Java APITimeoutSettings
withOperationTimeout(scala.concurrent.duration.FiniteDuration operationTimeout)
-
-
-
Method Detail
-
apply
public static TimeoutSettings apply(com.typesafe.config.Config config)
-
heartbeatInterval
public scala.concurrent.duration.FiniteDuration heartbeatInterval()
-
heartbeatTimeout
public scala.concurrent.duration.FiniteDuration heartbeatTimeout()
-
operationTimeout
public scala.concurrent.duration.FiniteDuration operationTimeout()
-
getHeartbeatInterval
public java.time.Duration getHeartbeatInterval()
Java API
-
getHeartbeatTimeout
public java.time.Duration getHeartbeatTimeout()
Java API
-
getOperationTimeout
public java.time.Duration getOperationTimeout()
Java API
-
withHeartbeatInterval
public TimeoutSettings withHeartbeatInterval(java.time.Duration heartbeatInterval)
Java API
-
withHeartbeatTimeout
public TimeoutSettings withHeartbeatTimeout(java.time.Duration heartbeatTimeout)
Java API
-
withOperationTimeout
public TimeoutSettings withOperationTimeout(java.time.Duration operationTimeout)
Java API
-
withHeartbeatInterval
public TimeoutSettings withHeartbeatInterval(scala.concurrent.duration.FiniteDuration heartbeatInterval)
-
withHeartbeatTimeout
public TimeoutSettings withHeartbeatTimeout(scala.concurrent.duration.FiniteDuration heartbeatTimeout)
-
withOperationTimeout
public TimeoutSettings withOperationTimeout(scala.concurrent.duration.FiniteDuration operationTimeout)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-