Class ExecutionThread

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    FullTextThread, PixelDataThread, ProcessManager

    public abstract class ExecutionThread
    extends java.lang.Object
    implements java.lang.Runnable
    Thread which can be started and will appropriately acquire a session, then use the Executor to complete its work.
    Since:
    3.0-Beta3
    • Field Detail

      • executor

        protected final Executor executor
      • principal

        protected final ome.system.Principal principal
    • Constructor Detail

      • ExecutionThread

        public ExecutionThread​(SessionManager manager,
                               Executor executor,
                               Executor.Work work,
                               ome.system.Principal principal)
        Main constructor. No arguments can be null.
    • Method Detail

      • run

        public final void run()
        Initializes the Session for this Thread if necessary, then calls doRun().
        Specified by:
        run in interface java.lang.Runnable
      • getPrincipal

        public final ome.system.Principal getPrincipal()
      • doRun

        public abstract void doRun()
      • sessionInit

        protected final void sessionInit()