Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package opalj

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode.

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode. OPAL is designed with performance, scalability and adaptability in mind.

    Its main components are:

    • a library (Common) which provides generally useful data-structures and algorithms for static analyses.
    • a framework for implementing lattice based static analyses (Static Analysis Infrastructure)
    • a framework for parsing Java bytecode (Bytecode Infrastructure) that can be used to create arbitrary representations.
    • a library to create a one-to-one in-memory representation of Java bytecode (Bytecode Disassembler).
    • a library to create a representation of Java bytecode that facilitates writing simple static analyses (Bytecode Representation - org.opalj.br).
    • a scalable, easily customizable framework for the abstract interpretation of Java bytecode (Abstract Interpretation Framework - org.opalj.ai).
    • a library to extract dependencies between code elements and to facilitate checking architecture definitions.
    • a library for the lightweight manipulation and creation of Java bytecode (Bytecode Assembler).

    General Design Decisions

    Thread Safety

    Unless explicitly noted, OPAL is thread safe. I.e., the classes defined by OPAL can be considered to be thread safe unless otherwise stated. (For example, it is possible to read and process class files concurrently without explicit synchronization on the client side.)

    No null Values

    Unless explicitly noted, OPAL does not null values I.e., fields that are accessible will never contain null values and methods will never return null. If a method accepts null as a value for a parameter or returns a null value it is always explicitly documented. In general, the behavior of methods that are passed null values is undefined unless explicitly documented.

    No Typecasts for Collections

    For efficiency reasons, OPAL sometimes uses mutable data-structures internally. After construction time, these data-structures are generally represented using their generic interfaces (e.g., scala.collection.{Set,Map}). However, a downcast (e.g., to add/remove elements) is always forbidden as it would effectively prevent thread-safety.

    Assertions

    OPAL makes heavy use of Scala's Assertion Facility to facilitate writing correct code. Hence, for production builds (after thorough testing(!)) it is highly recommend to build OPAL again using -Xdisable-assertions.

    Definition Classes
    org
  • package concurrent

    Common constants, factory methods and objects used throughout OPAL when performing concurrent computations.

    Common constants, factory methods and objects used throughout OPAL when performing concurrent computations.

    Definition Classes
    opalj
  • ConcurrentExceptions
  • ConcurrentTasks
  • Locking
  • OPALBoundedThreadPoolExecutor
  • SequentialTasks
  • Tasks
c

org.opalj.concurrent

OPALBoundedThreadPoolExecutor

class OPALBoundedThreadPoolExecutor extends ThreadPoolExecutor

A ThreadPool that knows the ThreadGroup associated with its threads and that catches exceptions if a thread crashes and reports them using the OPALLogger facility.

If the root cause of the exception should be related to the OPALLogger then the error is written to System.err.

The pool uses demon threads to make sure that these threads never prevent the JVM from regular termination.

Source
OPALThreadPoolExecutor.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OPALBoundedThreadPoolExecutor
  2. ThreadPoolExecutor
  3. AbstractExecutorService
  4. ExecutorService
  5. AutoCloseable
  6. Executor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OPALBoundedThreadPoolExecutor(n: Int, group: ThreadGroup)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def afterExecute(r: Runnable, t: Throwable): Unit
    Definition Classes
    OPALBoundedThreadPoolExecutor → ThreadPoolExecutor
  5. def allowCoreThreadTimeOut(arg0: Boolean): Unit
    Definition Classes
    ThreadPoolExecutor
  6. def allowsCoreThreadTimeOut(): Boolean
    Definition Classes
    ThreadPoolExecutor
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def awaitTermination(arg0: Long, arg1: TimeUnit): Boolean
    Definition Classes
    ThreadPoolExecutor → ExecutorService
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  9. def beforeExecute(arg0: Thread, arg1: Runnable): Unit
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. def close(): Unit
    Definition Classes
    ExecutorService → AutoCloseable
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def execute(arg0: Runnable): Unit
    Definition Classes
    ThreadPoolExecutor → Executor
  15. def getActiveCount(): Int
    Definition Classes
    ThreadPoolExecutor
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def getCompletedTaskCount(): Long
    Definition Classes
    ThreadPoolExecutor
  18. def getCorePoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  19. def getKeepAliveTime(arg0: TimeUnit): Long
    Definition Classes
    ThreadPoolExecutor
  20. def getLargestPoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  21. def getMaximumPoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  22. def getPoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  23. def getQueue(): BlockingQueue[Runnable]
    Definition Classes
    ThreadPoolExecutor
  24. def getRejectedExecutionHandler(): RejectedExecutionHandler
    Definition Classes
    ThreadPoolExecutor
  25. def getTaskCount(): Long
    Definition Classes
    ThreadPoolExecutor
  26. def getThreadFactory(): ThreadFactory
    Definition Classes
    ThreadPoolExecutor
  27. val group: ThreadGroup
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  29. def invokeAll[T <: AnyRef](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): List[Future[T]]
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. def invokeAll[T <: AnyRef](arg0: Collection[_ <: Callable[T]]): List[Future[T]]
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. def invokeAny[T <: AnyRef](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): T
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.util.concurrent.ExecutionException]) @throws(classOf[java.util.concurrent.TimeoutException])
  32. def invokeAny[T <: AnyRef](arg0: Collection[_ <: Callable[T]]): T
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @throws(classOf[java.util.concurrent.ExecutionException])
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def isShutdown(): Boolean
    Definition Classes
    ThreadPoolExecutor → ExecutorService
  35. def isTerminated(): Boolean
    Definition Classes
    ThreadPoolExecutor → ExecutorService
  36. def isTerminating(): Boolean
    Definition Classes
    ThreadPoolExecutor
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. def newTaskFor[T <: AnyRef](arg0: Callable[T]): RunnableFuture[T]
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    AbstractExecutorService
  39. def newTaskFor[T <: AnyRef](arg0: Runnable, arg1: T): RunnableFuture[T]
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    AbstractExecutorService
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  42. def prestartAllCoreThreads(): Int
    Definition Classes
    ThreadPoolExecutor
  43. def prestartCoreThread(): Boolean
    Definition Classes
    ThreadPoolExecutor
  44. def purge(): Unit
    Definition Classes
    ThreadPoolExecutor
  45. def remove(arg0: Runnable): Boolean
    Definition Classes
    ThreadPoolExecutor
  46. def setCorePoolSize(arg0: Int): Unit
    Definition Classes
    ThreadPoolExecutor
  47. def setKeepAliveTime(arg0: Long, arg1: TimeUnit): Unit
    Definition Classes
    ThreadPoolExecutor
  48. def setMaximumPoolSize(arg0: Int): Unit
    Definition Classes
    ThreadPoolExecutor
  49. def setRejectedExecutionHandler(arg0: RejectedExecutionHandler): Unit
    Definition Classes
    ThreadPoolExecutor
  50. def setThreadFactory(arg0: ThreadFactory): Unit
    Definition Classes
    ThreadPoolExecutor
  51. def shutdown(): Unit
    Definition Classes
    ThreadPoolExecutor → ExecutorService
  52. def shutdownNow(): List[Runnable]
    Definition Classes
    ThreadPoolExecutor → ExecutorService
  53. def submit[T <: AnyRef](arg0: Callable[T]): Future[T]
    Definition Classes
    AbstractExecutorService → ExecutorService
  54. def submit[T <: AnyRef](arg0: Runnable, arg1: T): Future[T]
    Definition Classes
    AbstractExecutorService → ExecutorService
  55. def submit(arg0: Runnable): Future[_ <: AnyRef]
    Definition Classes
    AbstractExecutorService → ExecutorService
  56. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  57. def terminated(): Unit
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor
  58. def toString(): String
    Definition Classes
    ThreadPoolExecutor → AnyRef → Any
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor → AnyRef
    Annotations
    @Deprecated
    Deprecated

Inherited from ThreadPoolExecutor

Inherited from ExecutorService

Inherited from AutoCloseable

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped