KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > util > NullSync


1 package org.jgroups.util;
2
3 import EDU.oswego.cs.dl.util.concurrent.Sync;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: NullSync.java,v 1.1 2005/04/08 08:52:44 belaban Exp $
8  */

9 public class NullSync implements Sync {
10
11     public void acquire() throws InterruptedException JavaDoc {
12     }
13
14     public boolean attempt(long l) throws InterruptedException JavaDoc {
15         return true;
16     }
17
18     public void release() {
19     }
20 }
21
Popular Tags