01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: DaemonRunner.java,v 1.5.2.2 2008/01/07 15:14:18 cwl Exp $
07: */
08:
09: package com.sleepycat.je.utilint;
10:
11: /**
12: * An object capable of running (run/pause/shutdown/etc) a daemon thread.
13: * See DaemonThread for details.
14: */
15: public interface DaemonRunner {
16: void runOrPause(boolean run);
17:
18: void requestShutdown();
19:
20: void shutdown();
21:
22: int getNWakeupRequests();
23: }
|