Reloadable

object Reloadable
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def auto[In, E, Out : Tag](layer: ZLayer[In, E, Out], schedule: Schedule[In, Any, Any])(implicit evidence$8: Tag[Out], trace: Trace): ZLayer[In, E, Reloadable[Out]]

Makes a new reloadable service from a layer that describes the construction of a static service. The service is automatically reloaded according to the provided schedule.

Makes a new reloadable service from a layer that describes the construction of a static service. The service is automatically reloaded according to the provided schedule.

def autoFromConfig[In, E, Out : Tag](layer: ZLayer[In, E, Out], scheduleFromConfig: ZEnvironment[In] => Schedule[In, Any, Any])(implicit evidence$9: Tag[Out], trace: Trace): ZLayer[In, E, Reloadable[Out]]

Makes a new reloadable service from a layer that describes the construction of a static service. The service is automatically reloaded according to a schedule, which is extracted from the input to the layer.

Makes a new reloadable service from a layer that describes the construction of a static service. The service is automatically reloaded according to a schedule, which is extracted from the input to the layer.

def get[Service : Tag](implicit evidence$10: Tag[Service], trace: Trace): ZIO[Reloadable[Service], Any, Service]
def manual[In, E, Out : Tag](layer: ZLayer[In, E, Out])(implicit evidence$7: Tag[Out], trace: Trace): ZLayer[In, E, Reloadable[Out]]

Makes a new reloadable service from a layer that describes the construction of a static service.

Makes a new reloadable service from a layer that describes the construction of a static service.

def reload[Service : Tag](implicit evidence$11: Tag[Service], trace: Trace): ZIO[Reloadable[Service], Any, Unit]
def reloadFork[Service : Tag](implicit evidence$12: Tag[Service], trace: Trace): ZIO[Reloadable[Service], Nothing, Unit]