01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.io;
05:
06: import java.io.IOException;
07: import java.nio.channels.FileLock;
08:
09: public class TCFileLockImpl implements TCFileLock {
10:
11: private final FileLock lock;
12:
13: public TCFileLockImpl(FileLock lock) {
14: this .lock = lock;
15: }
16:
17: public void release() throws IOException {
18: lock.release();
19: }
20: }
|