implicit final class FutureNamedOps[T] extends AnyVal
Named Future operations.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FutureNamedOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new FutureNamedOps(future: Future[T])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
andThenNamed[U](name: String)(pf: PartialFunction[Try[T], U])(implicit executor: ExecutionContext): Future[T]
Named version of
Future.andThen
. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
collectNamed[S](name: String)(pf: PartialFunction[T, S])(implicit executor: ExecutionContext): Future[S]
Named version of
Future.collect
. -
def
disableContext(): Future[T]
Disable any Cinnamon attached context on this Future.
Disable any Cinnamon attached context on this Future. Can be used if the Future will be cached.
-
def
filterNamed(name: String)(p: (T) ⇒ Boolean)(implicit executor: ExecutionContext): Future[T]
Named version of
Future.filter
. -
def
flatMapNamed[S](name: String)(f: (T) ⇒ Future[S])(implicit executor: ExecutionContext): Future[S]
Named version of
Future.flatMap
. -
def
flattenNamed[S](name: String)(implicit ev: <:<[T, Future[S]]): Future[S]
Named version of
Future.flatten
. -
def
foreachNamed[U](name: String)(f: (T) ⇒ U)(implicit executor: ExecutionContext): Unit
Named version of
Future.foreach
. -
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapNamed[S](name: String)(f: (T) ⇒ S)(implicit executor: ExecutionContext): Future[S]
Named version of
Future.map
. -
def
onCompleteNamed[U](name: String)(f: (Try[T]) ⇒ U)(implicit executor: ExecutionContext): Unit
Named version of
Future.onComplete
. -
def
recoverNamed[U >: T](name: String)(pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]
Named version of
Future.recover
. -
def
recoverWithNamed[U >: T](name: String)(pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]
Named version of
Future.recoverWith
. -
def
toString(): String
- Definition Classes
- Any
-
def
transformNamed[S](name: String)(s: (T) ⇒ S, f: (Throwable) ⇒ Throwable)(implicit executor: ExecutionContext): Future[S]
Named version of
Future.transform
. -
def
transformTryNamed[S](name: String)(f: (Try[T]) ⇒ Try[S])(implicit executor: ExecutionContext): Future[S]
Named version of
Future.transform
. -
def
transformWithNamed[S](name: String)(f: (Try[T]) ⇒ Future[S])(implicit executor: ExecutionContext): Future[S]
Named version of
Future.transformWith
. -
def
zipWithNamed[U, R](name: String)(that: Future[U])(f: (T, U) ⇒ R)(implicit executor: ExecutionContext): Future[R]
Named version of
Future.zipWith
.
This is the public API for Cinnamon.
The com.lightbend.cinnamon package contains the public Cinnamon API.
See the complete list of Cinnamon packages on the right.
Cinnamon Events and Metrics
For the custom events API see
CinnamonEvents
.For the custom metrics API see
CinnamonMetrics
.Stopwatch
For the Stopwatch API see
Stopwatch
.Coda Hale Metrics
For creating custom Coda Hale Metrics reporters see the com.lightbend.cinnamon.chmetrics.reporter package.