Package play

Class Invoker


  • public class Invoker
    extends java.lang.Object
    Run some code in a Play! context
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.concurrent.ScheduledThreadPoolExecutor executor
      Main executor for requests invocations.
    • Constructor Summary

      Constructors 
      Constructor Description
      Invoker()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.Future<?> invoke​(PlayHandler.NettyInvocation invocation)
      Run the code in a new thread took from a thread pool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • executor

        public static java.util.concurrent.ScheduledThreadPoolExecutor executor
        Main executor for requests invocations.
    • Constructor Detail

      • Invoker

        public Invoker()
    • Method Detail

      • invoke

        public java.util.concurrent.Future<?> invoke​(PlayHandler.NettyInvocation invocation)
        Run the code in a new thread took from a thread pool.
        Parameters:
        invocation - The code to run
        Returns:
        The future object, to know when the task is completed