KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > lockmanager > impl > NullWaitTimer


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.object.lockmanager.impl;
5
6 import com.tc.object.lockmanager.api.WaitTimer;
7 import com.tc.object.lockmanager.api.WaitTimerCallback;
8 import com.tc.object.tx.WaitInvocation;
9
10 import java.util.Timer JavaDoc;
11 import java.util.TimerTask JavaDoc;
12
13 public class NullWaitTimer implements WaitTimer {
14
15   public TimerTask JavaDoc scheduleTimer(WaitTimerCallback callback, WaitInvocation call, Object JavaDoc callbackObject) {
16     return new TimerTask JavaDoc() {
17       public void run() {
18         // NOP
19
}
20     };
21   }
22
23   public void shutdown() {
24     return;
25   }
26
27   public Timer getTimer() {
28     return null;
29   }
30 }
31
Popular Tags