Package py4j.examples

Class MultiClientServer.SharedRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    MultiClientServer

    public static class MultiClientServer.SharedRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    This Runnable for a Thread is designed to simulate the shared nature of a thread like the UI thread in an SWT application.
    • Constructor Summary

      Constructors 
      Constructor Description
      SharedRunnable()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.util.concurrent.FutureTask<?> future)  
      void run()  
      • Methods inherited from class java.lang.Object

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

      • SharedRunnable

        public SharedRunnable()
    • Method Detail

      • add

        public void add​(java.util.concurrent.FutureTask<?> future)
                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable