Package akka.dispatch

Class ExecutionContexts.sameThreadExecutionContext$

  • All Implemented Interfaces:
    BatchingExecutor, java.util.concurrent.Executor, scala.concurrent.ExecutionContext
    Enclosing class:

    public static class ExecutionContexts.sameThreadExecutionContext$
    extends java.lang.Object
    implements scala.concurrent.ExecutionContext, BatchingExecutor
    WARNING: Not A General Purpose ExecutionContext!

    This is an execution context which runs everything on the calling thread. It is very useful for actions which are known to be non-blocking and non-throwing in order to save a round-trip to the thread pool.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface scala.concurrent.ExecutionContext

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void reportFailure​(java.lang.Throwable t)  
      protected boolean resubmitOnBlock()  
      protected void unbatchedExecute​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface scala.concurrent.ExecutionContext

        execute, prepare
    • Constructor Detail

      • sameThreadExecutionContext$

        public sameThreadExecutionContext$()
    • Method Detail

      • reportFailure

        public void reportFailure​(java.lang.Throwable t)
        Specified by:
        reportFailure in interface scala.concurrent.ExecutionContext