KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > io > TCFileLockImpl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.io;
5
6 import java.io.IOException JavaDoc;
7 import java.nio.channels.FileLock JavaDoc;
8
9 public class TCFileLockImpl implements TCFileLock {
10   
11   private final FileLock JavaDoc lock;
12
13   public TCFileLockImpl(FileLock JavaDoc lock) {
14     this.lock = lock;
15   }
16
17   public void release() throws IOException JavaDoc {
18     lock.release();
19   }
20 }
21
Popular Tags