class ScheduledExecutor extends AnyRef
A thread pool backed executor for tasks scheduled in the future
- Annotations
- @throws( "if { @code corePoolSize < 0}" ) @throws( ... )
- Alphabetic
- By Inheritance
- ScheduledExecutor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ScheduledExecutor(corePoolSize: Int, threadFactory: ThreadFactory = Executors.defaultThreadFactory, handler: RejectedExecutionHandler = ScheduledExecutor.defaultHandler)
- corePoolSize
the number of threads to keep in the pool, even if they are idle, unless { @code allowCoreThreadTimeOut} is set
- threadFactory
the factory to use when the executor creates a new thread
- handler
the handler to use when execution is blocked because the thread bounds and queue capacities are reached
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
delayExecution[T](operation: ⇒ T)(by: FiniteDuration): CancellableFuture[T]
Creates a Future and schedules the operation to run after the given delay.
Creates a Future and schedules the operation to run after the given delay.
- T
the type of the operation's result
- operation
to execute
- by
the time from now to delay execution
- returns
a Future that can be used to extract result
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def executionContext: ExecutionContextExecutor
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
- @native() @throws( ... )