Package org.apache.karaf.util.locks
Class FileLockUtils
- java.lang.Object
-
- org.apache.karaf.util.locks.FileLockUtils
-
public final class FileLockUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFileLockUtils.Callable<T,U>static interfaceFileLockUtils.Runnable<T>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Texecute(File file, FileLockUtils.Callable<? super RandomAccessFile,T> callback)static <T> Texecute(File file, FileLockUtils.Callable<? super org.apache.felix.utils.properties.Properties,T> callback, boolean writeToFile)static voidexecute(File file, FileLockUtils.Runnable<? super RandomAccessFile> callback)static voidexecute(File file, FileLockUtils.Runnable<? super org.apache.felix.utils.properties.Properties> callback, boolean writeToFile)
-
-
-
Method Detail
-
execute
public static void execute(File file, FileLockUtils.Runnable<? super RandomAccessFile> callback) throws IOException
- Throws:
IOException
-
execute
public static <T> T execute(File file, FileLockUtils.Callable<? super RandomAccessFile,T> callback) throws IOException
- Throws:
IOException
-
execute
public static void execute(File file, FileLockUtils.Runnable<? super org.apache.felix.utils.properties.Properties> callback, boolean writeToFile) throws IOException
- Throws:
IOException
-
execute
public static <T> T execute(File file, FileLockUtils.Callable<? super org.apache.felix.utils.properties.Properties,T> callback, boolean writeToFile) throws IOException
- Throws:
IOException
-
-