Package

com.itv

lifecycle

Permalink

package lifecycle

Visibility
  1. Public
  2. All

Type Members

  1. class FlatMapLifecycle[A, B] extends Lifecycle[B]

    Permalink
  2. trait Lifecycle[+T] extends AnyRef

    Permalink

    Trait for classes that provide services that require shutting down after use.

    Trait for classes that provide services that require shutting down after use.

    Supports monadic operations so that Services can be used and combined like the following:

    for {
      executionContext <- FixedThreadPoolExecutorService(numThreads = 4)
      httpServer <- HttpServerService(port = 8080)
    } {
      respondToRequests(httpServer, executionContext)
    }
    T

    The public type this lifecycle provides

  3. case class NoOpLifecycle[T](value: T) extends VanillaLifecycle[T] with Product with Serializable

    Permalink

    Trivial lifecycle that provides a single value and does nothing on shutdown.

    Trivial lifecycle that provides a single value and does nothing on shutdown.

    T

    The type of the value this lifecycle provides

    value

    The value this lifecycle should provide

  4. trait VanillaLifecycle[T] extends Lifecycle[T]

    Permalink

Value Members

  1. object ExecutorLifecycles

    Permalink
  2. object FilesystemLifecycles

    Permalink
  3. object Lifecycle

    Permalink

Ungrouped