Reloadable

zio.Reloadable$
See theReloadable companion class
object Reloadable

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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]