1 21 22 package org.apache.derby.iapi.services.daemon; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 26 49 50 public interface DaemonService 51 { 52 public static int TIMER_DELAY = 10000; 54 55 58 public static final String DaemonTrace = SanityManager.DEBUG ? "DaemonTrace" : null; 59 60 64 public static final String DaemonOff = SanityManager.DEBUG ? "DaemonOff" : null; 65 66 67 74 public int subscribe(Serviceable newClient, boolean onDemandOnly); 75 76 77 87 public void unsubscribe(int clientNumber); 88 89 90 96 public void serviceNow(int clientNumber); 97 98 99 118 public boolean enqueue(Serviceable newClient, boolean serviceNow); 119 120 123 public void pause(); 124 125 126 129 public void resume(); 130 131 132 135 public void stop(); 136 137 141 public void clear(); 142 143 146 public void waitUntilQueueIsEmpty(); 147 148 } 149 150 | Popular Tags |