Class ChannelManager


  • public class ChannelManager
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.channels.FileChannel acquire​(java.lang.String filename)  
      static java.nio.channels.FileChannel acquire​(java.lang.String filename, java.lang.String mode)  
      static void release​(java.lang.String filename)  
      static void release​(java.nio.channels.FileChannel chan)  
      static void releaseAll​(java.lang.String prefix)
      Shutdown all the files matching the prefix (typically a directory)
      static void reset()  
      • Methods inherited from class java.lang.Object

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

      • ChannelManager

        public ChannelManager()
    • Method Detail

      • acquire

        public static java.nio.channels.FileChannel acquire​(java.lang.String filename)
      • acquire

        public static java.nio.channels.FileChannel acquire​(java.lang.String filename,
                                                            java.lang.String mode)
      • release

        public static void release​(java.lang.String filename)
      • release

        public static void release​(java.nio.channels.FileChannel chan)
      • reset

        public static void reset()
      • releaseAll

        public static void releaseAll​(java.lang.String prefix)
        Shutdown all the files matching the prefix (typically a directory)