class NameableCompletionStage[T] extends CompletionStage[T]
Naming API for CompletionStage.
Note: all methods for NameableCompletionStage return a new NameableCompletionStage for fluent naming API. NameableCompletionStage is a CompletionStage, so can be passed on as is.
- Alphabetic
- By Inheritance
- NameableCompletionStage
- CompletionStage
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new NameableCompletionStage(underlying: CompletionStage[T])
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
-
def
acceptEither(other: CompletionStage[_ <: T], action: Consumer[_ >: T]): NameableCompletionStage[Void]
Original version of
CompletionStage.acceptEither
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.acceptEither
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.acceptEither
- action
the action for
CompletionStage.acceptEither
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
acceptEitherAsync(other: CompletionStage[_ <: T], action: Consumer[_ >: T], executor: Executor): NameableCompletionStage[Void]
Original version of
CompletionStage.acceptEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.acceptEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.acceptEitherAsync
- action
the action for
CompletionStage.acceptEitherAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
acceptEitherAsync(other: CompletionStage[_ <: T], action: Consumer[_ >: T]): NameableCompletionStage[Void]
Original version of
CompletionStage.acceptEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.acceptEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.acceptEitherAsync
- action
the action for
CompletionStage.acceptEitherAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
acceptEitherAsyncNamed(name: String, other: CompletionStage[_ <: T], action: Consumer[_ >: T], executor: Executor): NameableCompletionStage[Void]
Named version of
CompletionStage.acceptEitherAsync
.Named version of
CompletionStage.acceptEitherAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.acceptEitherAsync
- action
the action for
CompletionStage.acceptEitherAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
acceptEitherAsyncNamed(name: String, other: CompletionStage[_ <: T], action: Consumer[_ >: T]): NameableCompletionStage[Void]
Named version of
CompletionStage.acceptEitherAsync
.Named version of
CompletionStage.acceptEitherAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.acceptEitherAsync
- action
the action for
CompletionStage.acceptEitherAsync
- returns
the new (unnamed) CompletionStage
-
def
acceptEitherNamed(name: String, other: CompletionStage[_ <: T], action: Consumer[_ >: T]): NameableCompletionStage[Void]
Named version of
CompletionStage.acceptEither
.Named version of
CompletionStage.acceptEither
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.acceptEither
- action
the action for
CompletionStage.acceptEither
- returns
the new (unnamed) CompletionStage
-
def
applyToEither[U](other: CompletionStage[_ <: T], fn: Function[_ >: T, U]): NameableCompletionStage[U]
Original version of
CompletionStage.applyToEither
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.applyToEither
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.applyToEither
- fn
the function for
CompletionStage.applyToEither
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
applyToEitherAsync[U](other: CompletionStage[_ <: T], fn: Function[_ >: T, U], executor: Executor): NameableCompletionStage[U]
Original version of
CompletionStage.applyToEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.applyToEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.applyToEitherAsync
- fn
the function for
CompletionStage.applyToEitherAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
applyToEitherAsync[U](other: CompletionStage[_ <: T], fn: Function[_ >: T, U]): NameableCompletionStage[U]
Original version of
CompletionStage.applyToEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.applyToEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.applyToEitherAsync
- fn
the function for
CompletionStage.applyToEitherAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
applyToEitherAsyncNamed[U](name: String, other: CompletionStage[_ <: T], fn: Function[_ >: T, U], executor: Executor): NameableCompletionStage[U]
Named version of
CompletionStage.applyToEitherAsync
.Named version of
CompletionStage.applyToEitherAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.applyToEitherAsync
- fn
the function for
CompletionStage.applyToEitherAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
applyToEitherAsyncNamed[U](name: String, other: CompletionStage[_ <: T], fn: Function[_ >: T, U]): NameableCompletionStage[U]
Named version of
CompletionStage.applyToEitherAsync
.Named version of
CompletionStage.applyToEitherAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.applyToEitherAsync
- fn
the function for
CompletionStage.applyToEitherAsync
- returns
the new (unnamed) CompletionStage
-
def
applyToEitherNamed[U](name: String, other: CompletionStage[_ <: T], fn: Function[_ >: T, U]): NameableCompletionStage[U]
Named version of
CompletionStage.applyToEither
.Named version of
CompletionStage.applyToEither
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.applyToEither
- fn
the function for
CompletionStage.applyToEither
- returns
the new (unnamed) CompletionStage
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exceptionally(fn: Function[Throwable, _ <: T]): NameableCompletionStage[T]
Original version of
CompletionStage.exceptionally
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.exceptionally
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.exceptionally
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
exceptionallyAsync(arg0: Function[Throwable, _ <: T], arg1: Executor): CompletionStage[T]
- Definition Classes
- CompletionStage
-
def
exceptionallyAsync(arg0: Function[Throwable, _ <: T]): CompletionStage[T]
- Definition Classes
- CompletionStage
-
def
exceptionallyCompose(arg0: Function[Throwable, _ <: CompletionStage[T]]): CompletionStage[T]
- Definition Classes
- CompletionStage
-
def
exceptionallyComposeAsync(arg0: Function[Throwable, _ <: CompletionStage[T]], arg1: Executor): CompletionStage[T]
- Definition Classes
- CompletionStage
-
def
exceptionallyComposeAsync(arg0: Function[Throwable, _ <: CompletionStage[T]]): CompletionStage[T]
- Definition Classes
- CompletionStage
-
def
exceptionallyNamed(name: String, fn: Function[Throwable, _ <: T]): NameableCompletionStage[T]
Named version of
CompletionStage.exceptionally
.Named version of
CompletionStage.exceptionally
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.exceptionally
- returns
the new (unnamed) CompletionStage
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getUnderlying(): CompletionStage[T]
Return the underlying CompletionStage wrapped by this NameableCompletionStage.
Return the underlying CompletionStage wrapped by this NameableCompletionStage.
- returns
the underlying CompletionStage
-
def
handle[U](fn: BiFunction[_ >: T, Throwable, _ <: U]): NameableCompletionStage[U]
Original version of
CompletionStage.handle
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.handle
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.handle
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
handleAsync[U](fn: BiFunction[_ >: T, Throwable, _ <: U], executor: Executor): NameableCompletionStage[U]
Original version of
CompletionStage.handleAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.handleAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.handleAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
handleAsync[U](fn: BiFunction[_ >: T, Throwable, _ <: U]): NameableCompletionStage[U]
Original version of
CompletionStage.handleAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.handleAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.handleAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
handleAsyncNamed[U](name: String, fn: BiFunction[_ >: T, Throwable, _ <: U], executor: Executor): NameableCompletionStage[U]
Named version of
CompletionStage.handleAsync
.Named version of
CompletionStage.handleAsync
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.handleAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
handleAsyncNamed[U](name: String, fn: BiFunction[_ >: T, Throwable, _ <: U]): NameableCompletionStage[U]
Named version of
CompletionStage.handleAsync
.Named version of
CompletionStage.handleAsync
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.handleAsync
- returns
the new (unnamed) CompletionStage
-
def
handleNamed[U](name: String, fn: BiFunction[_ >: T, Throwable, _ <: U]): NameableCompletionStage[U]
Named version of
CompletionStage.handle
.Named version of
CompletionStage.handle
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.handle
- returns
the new (unnamed) CompletionStage
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
runAfterBoth(other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Original version of
CompletionStage.runAfterBoth
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.runAfterBoth
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.runAfterBoth
- action
the action for
CompletionStage.runAfterBoth
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
runAfterBothAsync(other: CompletionStage[_], action: Runnable, executor: Executor): NameableCompletionStage[Void]
Original version of
CompletionStage.runAfterBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.runAfterBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.runAfterBothAsync
- action
the action for
CompletionStage.runAfterBothAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
runAfterBothAsync(other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Original version of
CompletionStage.runAfterBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.runAfterBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.runAfterBothAsync
- action
the action for
CompletionStage.runAfterBothAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
runAfterBothAsyncNamed(name: String, other: CompletionStage[_], action: Runnable, executor: Executor): NameableCompletionStage[Void]
Named version of
CompletionStage.runAfterBothAsync
.Named version of
CompletionStage.runAfterBothAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.runAfterBothAsync
- action
the action for
CompletionStage.runAfterBothAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
runAfterBothAsyncNamed(name: String, other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Named version of
CompletionStage.runAfterBothAsync
.Named version of
CompletionStage.runAfterBothAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.runAfterBothAsync
- action
the action for
CompletionStage.runAfterBothAsync
- returns
the new (unnamed) CompletionStage
-
def
runAfterBothNamed(name: String, other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Named version of
CompletionStage.runAfterBoth
.Named version of
CompletionStage.runAfterBoth
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.runAfterBoth
- action
the action for
CompletionStage.runAfterBoth
- returns
the new (unnamed) CompletionStage
-
def
runAfterEither(other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Original version of
CompletionStage.runAfterEither
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.runAfterEither
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.runAfterEither
- action
the action for
CompletionStage.runAfterEither
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
runAfterEitherAsync(other: CompletionStage[_], action: Runnable, executor: Executor): NameableCompletionStage[Void]
Original version of
CompletionStage.runAfterEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.runAfterEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.runAfterEitherAsync
- action
the action for
CompletionStage.runAfterEitherAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
runAfterEitherAsync(other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Original version of
CompletionStage.runAfterEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.runAfterEitherAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.runAfterEitherAsync
- action
the action for
CompletionStage.runAfterEitherAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
runAfterEitherAsyncNamed(name: String, other: CompletionStage[_], action: Runnable, executor: Executor): NameableCompletionStage[Void]
Named version of
CompletionStage.runAfterEitherAsync
.Named version of
CompletionStage.runAfterEitherAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.runAfterEitherAsync
- action
the action for
CompletionStage.runAfterEitherAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
runAfterEitherAsyncNamed(name: String, other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Named version of
CompletionStage.runAfterEitherAsync
.Named version of
CompletionStage.runAfterEitherAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.runAfterEitherAsync
- action
the action for
CompletionStage.runAfterEitherAsync
- returns
the new (unnamed) CompletionStage
-
def
runAfterEitherNamed(name: String, other: CompletionStage[_], action: Runnable): NameableCompletionStage[Void]
Named version of
CompletionStage.runAfterEither
.Named version of
CompletionStage.runAfterEither
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.runAfterEither
- action
the action for
CompletionStage.runAfterEither
- returns
the new (unnamed) CompletionStage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
thenAccept(action: Consumer[_ >: T]): NameableCompletionStage[Void]
Original version of
CompletionStage.thenAccept
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenAccept
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.thenAccept
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenAcceptAsync(action: Consumer[_ >: T], executor: Executor): NameableCompletionStage[Void]
Original version of
CompletionStage.thenAcceptAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenAcceptAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.thenAcceptAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenAcceptAsync(action: Consumer[_ >: T]): NameableCompletionStage[Void]
Original version of
CompletionStage.thenAcceptAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenAcceptAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.thenAcceptAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenAcceptAsyncNamed(name: String, action: Consumer[_ >: T], executor: Executor): NameableCompletionStage[Void]
Named version of
CompletionStage.thenAcceptAsync
.Named version of
CompletionStage.thenAcceptAsync
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.thenAcceptAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
thenAcceptAsyncNamed(name: String, action: Consumer[_ >: T]): NameableCompletionStage[Void]
Named version of
CompletionStage.thenAcceptAsync
.Named version of
CompletionStage.thenAcceptAsync
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.thenAcceptAsync
- returns
the new (unnamed) CompletionStage
-
def
thenAcceptBoth[U](other: CompletionStage[_ <: U], action: BiConsumer[_ >: T, _ >: U]): NameableCompletionStage[Void]
Original version of
CompletionStage.thenAcceptBoth
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenAcceptBoth
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.thenAcceptBoth
- action
the action for
CompletionStage.thenAcceptBoth
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenAcceptBothAsync[U](other: CompletionStage[_ <: U], action: BiConsumer[_ >: T, _ >: U], executor: Executor): NameableCompletionStage[Void]
Original version of
CompletionStage.thenAcceptBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenAcceptBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.thenAcceptBothAsync
- action
the action for
CompletionStage.thenAcceptBothAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenAcceptBothAsync[U](other: CompletionStage[_ <: U], action: BiConsumer[_ >: T, _ >: U]): NameableCompletionStage[Void]
Original version of
CompletionStage.thenAcceptBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenAcceptBothAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.thenAcceptBothAsync
- action
the action for
CompletionStage.thenAcceptBothAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenAcceptBothAsyncNamed[U](name: String, other: CompletionStage[_ <: U], action: BiConsumer[_ >: T, _ >: U], executor: Executor): NameableCompletionStage[Void]
Named version of
CompletionStage.thenAcceptBothAsync
.Named version of
CompletionStage.thenAcceptBothAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.thenAcceptBothAsync
- action
the action for
CompletionStage.thenAcceptBothAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
thenAcceptBothAsyncNamed[U](name: String, other: CompletionStage[_ <: U], action: BiConsumer[_ >: T, _ >: U]): NameableCompletionStage[Void]
Named version of
CompletionStage.thenAcceptBothAsync
.Named version of
CompletionStage.thenAcceptBothAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.thenAcceptBothAsync
- action
the action for
CompletionStage.thenAcceptBothAsync
- returns
the new (unnamed) CompletionStage
-
def
thenAcceptBothNamed[U](name: String, other: CompletionStage[_ <: U], action: BiConsumer[_ >: T, _ >: U]): NameableCompletionStage[Void]
Named version of
CompletionStage.thenAcceptBoth
.Named version of
CompletionStage.thenAcceptBoth
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.thenAcceptBoth
- action
the action for
CompletionStage.thenAcceptBoth
- returns
the new (unnamed) CompletionStage
-
def
thenAcceptNamed(name: String, action: Consumer[_ >: T]): NameableCompletionStage[Void]
Named version of
CompletionStage.thenAccept
.Named version of
CompletionStage.thenAccept
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.thenAccept
- returns
the new (unnamed) CompletionStage
-
def
thenApply[U](fn: Function[_ >: T, _ <: U]): NameableCompletionStage[U]
Original version of
CompletionStage.thenApply
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenApply
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.thenApply
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenApplyAsync[U](fn: Function[_ >: T, _ <: U], executor: Executor): NameableCompletionStage[U]
Original version of
CompletionStage.thenApplyAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenApplyAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.thenApplyAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenApplyAsync[U](fn: Function[_ >: T, _ <: U]): NameableCompletionStage[U]
Original version of
CompletionStage.thenApplyAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenApplyAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.thenApplyAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenApplyAsyncNamed[U](name: String, fn: Function[_ >: T, _ <: U], executor: Executor): NameableCompletionStage[U]
Named version of
CompletionStage.thenApplyAsync
.Named version of
CompletionStage.thenApplyAsync
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.thenApplyAsync
- executor
the executor to use for asynchronous execution
- returns
the new (named) CompletionStage
-
def
thenApplyAsyncNamed[U](name: String, fn: Function[_ >: T, _ <: U]): NameableCompletionStage[U]
Named version of
CompletionStage.thenApplyAsync
.Named version of
CompletionStage.thenApplyAsync
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.thenApplyAsync
- returns
the new (named) CompletionStage
-
def
thenApplyNamed[U](name: String, fn: Function[_ >: T, _ <: U]): NameableCompletionStage[U]
Named version of
CompletionStage.thenApply
.Named version of
CompletionStage.thenApply
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.thenApply
- returns
the new (named) CompletionStage
-
def
thenCombine[U, V](other: CompletionStage[_ <: U], fn: BiFunction[_ >: T, _ >: U, _ <: V]): NameableCompletionStage[V]
Original version of
CompletionStage.thenCombine
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenCombine
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.thenCombine
- fn
the function for
CompletionStage.thenCombine
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenCombineAsync[U, V](other: CompletionStage[_ <: U], fn: BiFunction[_ >: T, _ >: U, _ <: V], executor: Executor): NameableCompletionStage[V]
Original version of
CompletionStage.thenCombineAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenCombineAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.thenCombineAsync
- fn
the function for
CompletionStage.thenCombineAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenCombineAsync[U, V](other: CompletionStage[_ <: U], fn: BiFunction[_ >: T, _ >: U, _ <: V]): NameableCompletionStage[V]
Original version of
CompletionStage.thenCombineAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenCombineAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- other
the other CompletionStage for
CompletionStage.thenCombineAsync
- fn
the function for
CompletionStage.thenCombineAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenCombineAsyncNamed[U, V](name: String, other: CompletionStage[_ <: U], fn: BiFunction[_ >: T, _ >: U, _ <: V], executor: Executor): NameableCompletionStage[V]
Named version of
CompletionStage.thenCombineAsync
.Named version of
CompletionStage.thenCombineAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.thenCombineAsync
- fn
the function for
CompletionStage.thenCombineAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
thenCombineAsyncNamed[U, V](name: String, other: CompletionStage[_ <: U], fn: BiFunction[_ >: T, _ >: U, _ <: V]): NameableCompletionStage[V]
Named version of
CompletionStage.thenCombineAsync
.Named version of
CompletionStage.thenCombineAsync
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.thenCombineAsync
- fn
the function for
CompletionStage.thenCombineAsync
- returns
the new (unnamed) CompletionStage
-
def
thenCombineNamed[U, V](name: String, other: CompletionStage[_ <: U], fn: BiFunction[_ >: T, _ >: U, _ <: V]): NameableCompletionStage[V]
Named version of
CompletionStage.thenCombine
.Named version of
CompletionStage.thenCombine
.- name
the name for the new CompletionStage and completion callback
- other
the other CompletionStage for
CompletionStage.thenCombine
- fn
the function for
CompletionStage.thenCombine
- returns
the new (unnamed) CompletionStage
-
def
thenCompose[U](fn: Function[_ >: T, _ <: CompletionStage[U]]): NameableCompletionStage[U]
Original version of
CompletionStage.thenCompose
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenCompose
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.thenCompose
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenComposeAsync[U](fn: Function[_ >: T, _ <: CompletionStage[U]], executor: Executor): NameableCompletionStage[U]
Original version of
CompletionStage.thenComposeAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenComposeAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.thenComposeAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenComposeAsync[U](fn: Function[_ >: T, _ <: CompletionStage[U]]): NameableCompletionStage[U]
Original version of
CompletionStage.thenComposeAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenComposeAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- fn
the function for
CompletionStage.thenComposeAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenComposeAsyncNamed[U](name: String, fn: Function[_ >: T, _ <: CompletionStage[U]], executor: Executor): NameableCompletionStage[U]
Named version of
CompletionStage.thenComposeAsync
.Named version of
CompletionStage.thenComposeAsync
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.thenComposeAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
thenComposeAsyncNamed[U](name: String, fn: Function[_ >: T, _ <: CompletionStage[U]]): NameableCompletionStage[U]
Named version of
CompletionStage.thenComposeAsync
.Named version of
CompletionStage.thenComposeAsync
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.thenComposeAsync
- returns
the new (unnamed) CompletionStage
-
def
thenComposeNamed[U](name: String, fn: Function[_ >: T, _ <: CompletionStage[U]]): NameableCompletionStage[U]
Named version of
CompletionStage.thenCompose
.Named version of
CompletionStage.thenCompose
.- name
the name for the new CompletionStage and completion callback
- fn
the function for
CompletionStage.thenCompose
- returns
the new (unnamed) CompletionStage
-
def
thenRun(action: Runnable): NameableCompletionStage[Void]
Original version of
CompletionStage.thenRun
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenRun
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.thenRun
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenRunAsync(action: Runnable, executor: Executor): NameableCompletionStage[Void]
Original version of
CompletionStage.thenRunAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenRunAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.thenRunAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenRunAsync(action: Runnable): NameableCompletionStage[Void]
Original version of
CompletionStage.thenRunAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.thenRunAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.thenRunAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
thenRunAsyncNamed(name: String, action: Runnable, executor: Executor): NameableCompletionStage[Void]
Named version of
CompletionStage.thenRunAsync
.Named version of
CompletionStage.thenRunAsync
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.thenRunAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
thenRunAsyncNamed(name: String, action: Runnable): NameableCompletionStage[Void]
Named version of
CompletionStage.thenRunAsync
.Named version of
CompletionStage.thenRunAsync
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.thenRunAsync
- returns
the new (unnamed) CompletionStage
-
def
thenRunNamed(name: String, action: Runnable): NameableCompletionStage[Void]
Named version of
CompletionStage.thenRun
.Named version of
CompletionStage.thenRun
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.thenRun
- returns
the new (unnamed) CompletionStage
-
def
toCompletableFuture(): CompletableFuture[T]
Original version of
CompletionStage.toCompletableFuture
.Original version of
CompletionStage.toCompletableFuture
.- returns
the CompletableFuture
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
toCompletableFutureNamed(name: String): CompletableFuture[T]
Named version of
CompletionStage.toCompletableFuture
.Named version of
CompletionStage.toCompletableFuture
.Note: only applies the name when this method returns a new CompletableFuture.
- name
the name for the CompletableFuture (if new future created)
- returns
the CompletableFuture
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
whenComplete(action: BiConsumer[_ >: T, _ >: Throwable]): NameableCompletionStage[T]
Original version of
CompletionStage.whenComplete
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.whenComplete
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.whenComplete
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
whenCompleteAsync(action: BiConsumer[_ >: T, _ >: Throwable], executor: Executor): NameableCompletionStage[T]
Original version of
CompletionStage.whenCompleteAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.whenCompleteAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.whenCompleteAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
whenCompleteAsync(action: BiConsumer[_ >: T, _ >: Throwable]): NameableCompletionStage[T]
Original version of
CompletionStage.whenCompleteAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.Original version of
CompletionStage.whenCompleteAsync
, but returns a NameableCompletionStage where subsequent method calls can use named variations.- action
the action for
CompletionStage.whenCompleteAsync
- returns
the new (unnamed) CompletionStage
- Definition Classes
- NameableCompletionStage → CompletionStage
-
def
whenCompleteAsyncNamed(name: String, action: BiConsumer[_ >: T, _ >: Throwable], executor: Executor): NameableCompletionStage[T]
Named version of
CompletionStage.whenCompleteAsync
.Named version of
CompletionStage.whenCompleteAsync
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.whenCompleteAsync
- executor
the executor to use for asynchronous execution
- returns
the new (unnamed) CompletionStage
-
def
whenCompleteAsyncNamed(name: String, action: BiConsumer[_ >: T, _ >: Throwable]): NameableCompletionStage[T]
Named version of
CompletionStage.whenCompleteAsync
.Named version of
CompletionStage.whenCompleteAsync
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.whenCompleteAsync
- returns
the new (unnamed) CompletionStage
-
def
whenCompleteNamed(name: String, action: BiConsumer[_ >: T, _ >: Throwable]): NameableCompletionStage[T]
Named version of
CompletionStage.whenComplete
.Named version of
CompletionStage.whenComplete
.- name
the name for the new CompletionStage and completion callback
- action
the action for
CompletionStage.whenComplete
- returns
the new (unnamed) CompletionStage
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
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.