KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > utilint > DaemonRunner


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: DaemonRunner.java,v 1.5 2006/10/30 21:14:28 bostic Exp $
7  */

8
9 package com.sleepycat.je.utilint;
10
11
12 /**
13  * An object capable of running (run/pause/shutdown/etc) a daemon thread.
14  * See DaemonThread for details.
15  */

16 public interface DaemonRunner {
17     void runOrPause(boolean run);
18     void requestShutdown();
19     void shutdown();
20     int getNWakeupRequests();
21 }
22
Popular Tags