Class ProjectLauncher.LiveCoding

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    ProjectLauncher

    public class ProjectLauncher.LiveCoding
    extends java.lang.Object
    implements java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.Executor executor  
      private FileWatcher fw  
      private java.util.concurrent.atomic.AtomicBoolean propertiesChanged  
      private java.util.concurrent.ScheduledExecutorService scheduledExecutor  
      private java.util.concurrent.Semaphore semaphore  
    • Constructor Summary

      Constructors 
      Constructor Description
      LiveCoding​(java.util.concurrent.Executor executor, java.util.concurrent.ScheduledExecutorService scheduledExecutor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void changed​(java.io.File file, java.lang.String kind)  
      void close()  
      private void watch()  
      • Methods inherited from class java.lang.Object

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

      • semaphore

        private final java.util.concurrent.Semaphore semaphore
      • propertiesChanged

        private final java.util.concurrent.atomic.AtomicBoolean propertiesChanged
      • executor

        private final java.util.concurrent.Executor executor
      • scheduledExecutor

        private final java.util.concurrent.ScheduledExecutorService scheduledExecutor
    • Constructor Detail

      • LiveCoding

        LiveCoding​(java.util.concurrent.Executor executor,
                   java.util.concurrent.ScheduledExecutorService scheduledExecutor)
            throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • watch

        private void watch()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • changed

        private void changed​(java.io.File file,
                             java.lang.String kind)