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