FutureJdkAutoUpdater

ca.dvgi.periodic.jdk.FutureJdkAutoUpdater
See theFutureJdkAutoUpdater companion object
class FutureJdkAutoUpdater[T](blockUntilReadyTimeout: Option[Duration], executorOverride: Option[ScheduledExecutorService]) extends JdkAutoUpdater[Future, T]

Attributes

Companion
object
Graph
Supertypes
class JdkAutoUpdater[Future, T]
trait AutoUpdater[Future, Future, T]
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

override def close(): Unit

Attributes

Definition Classes
JdkAutoUpdater -> AutoCloseable
Inherited from:
JdkAutoUpdater
override def latest: Option[T]

The latest in-memory value of the variable.

The latest in-memory value of the variable.

Attributes

Returns

Some[T] if the variable has been initialized successfully, otherwise None.

Definition Classes
Inherited from:
JdkAutoUpdater
override def start(log: Logger, updateVar: () => Future[T], updateInterval: UpdateInterval[T], updateAttemptStrategy: UpdateAttemptStrategy, handleInitializationError: PartialFunction[Throwable, Future[T]]): Future[Unit]

Initializes the var for the first time, handling errors as specified. If successful, schedules the next update.

Initializes the var for the first time, handling errors as specified. If successful, schedules the next update.

Value parameters

log

Implementations should use this logger for consistency.

Attributes

Returns

An effect, which, if successfully completed, signifies that a value is available. If initialization failed, the effect should also be failed.

Definition Classes
Inherited from:
JdkAutoUpdater