Class TranscodeService


  • public class TranscodeService
    extends SpyObject
    Asynchronous transcoder.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  TranscodeService.Task<T>  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.ThreadPoolExecutor pool  
    • Constructor Summary

      Constructors 
      Constructor Description
      TranscodeService​(boolean daemon)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.util.concurrent.Future<T> decode​(Transcoder<T> tc, CachedData cachedData)
      Perform a decode.
      boolean isShutdown()
      Ask whether this service has been shut down.
      void shutdown()
      Shut down the pool.
      • Methods inherited from class java.lang.Object

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

      • pool

        private final java.util.concurrent.ThreadPoolExecutor pool
    • Constructor Detail

      • TranscodeService

        public TranscodeService​(boolean daemon)
    • Method Detail

      • decode

        public <T> java.util.concurrent.Future<T> decode​(Transcoder<T> tc,
                                                         CachedData cachedData)
        Perform a decode.
      • shutdown

        public void shutdown()
        Shut down the pool.
      • isShutdown

        public boolean isShutdown()
        Ask whether this service has been shut down.