class
AsyncExecutor[T, R] extends Logging
Instance Constructors
-
new
AsyncExecutor(asyncAction: (T) ⇒ ListenableFuture[R], maxConcurrentTasks: Int, successHandler: Option[(T, Long, Long) ⇒ Unit] = scala.None, failureHandler: Option[(T, Long, Long) ⇒ Unit])
Value Members
-
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (AsyncExecutor[T, R], B)
-
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
-
-
-
-
def
executeAsync(task: T): ListenableFuture[R]
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
isTraceEnabled(): Boolean
-
def
log: Logger
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
-
def
logDebug(msg: ⇒ String): Unit
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
-
def
logError(msg: ⇒ String): Unit
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
-
def
logInfo(msg: ⇒ String): Unit
-
def
logName: String
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
-
def
logTrace(msg: ⇒ String): Unit
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
-
def
logWarning(msg: ⇒ String): Unit
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
successful: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
waitForCurrentlyExecutingTasks(): Unit
-
def
→[B](y: B): (AsyncExecutor[T, R], B)
Shadowed Implicit Value Members
-
val
self: Any
-
val
self: Any
Asynchronously executes tasks but blocks if the limit of unfinished tasks is reached.