org.littleshoot.util
Interface LockedFileRunner


public interface LockedFileRunner

Utility interface for executing methods with a lock on a file.


Method Summary
 void callWithLock(FileChannel fc)
          Allows an implementation to operation on the given file channel with assurance that we hold the lock on the file.
 

Method Detail

callWithLock

void callWithLock(FileChannel fc)
Allows an implementation to operation on the given file channel with assurance that we hold the lock on the file.

Parameters:
fc - The FileChannel we hold the lock on.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.