object Lifecycle extends NoTracing
Utilities for working with instances that support our lifecycle pattern.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Lifecycle
- NoTracing
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- class CloseableChannel extends AutoCloseable
- class CloseableServer extends AutoCloseable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(instances: AutoCloseable*)(logger: TracedLogger): Unit
Attempts to close all provided closable instances.
Attempts to close all provided closable instances. Instances are closed in the order that they are provided. These instances are expected to synchronously close or throw. If an exception is encountered when closing an instances, we will still attempt to close other closeables and then throw a ShutdownFailedException. Exceptions thrown by
close
will be logged and the names of failed instances are wrapped into the ShutdownFailedException. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def shutdownResource[A](name: String, shutdown: () => Unit, shutdownNow: () => Unit, awaitIdleness: (FiniteDuration) => Boolean, awaitTermination: (FiniteDuration) => Boolean, gracefulTimeout: FiniteDuration, forcedTimeout: FiniteDuration, logger: TracedLogger, verbose: Boolean = true): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toCloseableActorSystem(system: ActorSystem, logger: TracedLogger, timeouts: ProcessingTimeout): AutoCloseable
- def toCloseableChannel(channel: ManagedChannel, logger: TracedLogger, name: String): CloseableChannel
- def toCloseableMaterializer(mat: Materializer, name: String): AutoCloseable
- def toCloseableOption[A <: AutoCloseable](maybeClosable: Option[A]): AutoCloseable
- def toCloseableServer(server: Server, logger: TracedLogger, name: String): CloseableServer
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit def traceContext: TraceContext
- Attributes
- protected
- Definition Classes
- NoTracing
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])