class CompletionExecutor[V] extends Shutdown
- Alphabetic
- By Inheritance
- CompletionExecutor
- Shutdown
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CompletionExecutor(executorService: ExecutorService)
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
awaitTermination(timeoutWhen: DateTime): Unit
- Definition Classes
- Shutdown
-
def
awaitTermination(timeout: Long, unit: TimeUnit): Unit
- Definition Classes
- Shutdown
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
executorService: ExecutorService
- Attributes
- protected
- Definition Classes
- CompletionExecutor → Shutdown
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
poll(till: DateTime): Option[Future[V]]
polls, waiting max until the provided DateTime.
-
def
poll(timeout: Long, unit: TimeUnit): Option[Future[V]]
Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.
Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.
- timeout
how long to wait before giving up, in units of unit
- unit
a TimeUnit determining how to interpret the timeout parameter
- returns
the Future representing the next completed task or None if the specified waiting time elapses before one is present
- Exceptions thrown
InterruptedException
if interrupted while waiting
-
def
poll: Option[Future[V]]
Retrieves and removes the Future representing the next completed task or None if none are present.
Retrieves and removes the Future representing the next completed task or None if none are present.
- returns
the Future representing the next completed task, or None if none are present
- def pollWaitInMillis(timeoutMs: Long): Option[Future[V]]
-
def
shutdown: Unit
- Definition Classes
- Shutdown
-
def
shutdownAndAwaitTermination(timeoutWhen: DateTime): Unit
- Definition Classes
- Shutdown
-
def
shutdownAndAwaitTermination(waitTimeInSeconds: Int): Unit
- Definition Classes
- Shutdown
-
def
shutdownNow: List[Runnable]
- Definition Classes
- Shutdown
- def submit(task: Runnable, result: V): Future[V]
- def submit(task: Callable[V]): Future[V]
- def submit(f: ⇒ V): Future[V]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
take: Future[V]
Retrieves and removes the Future representing the next completed task, waiting if none are yet present.
Retrieves and removes the Future representing the next completed task, waiting if none are yet present.
- returns
the Future representing the next completed task
- Exceptions thrown
InterruptedException
if interrupted while waiting
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )