1 2 23 24 package net.fenyo.gnetwatch.activities; 25 26 import java.util.LinkedList ; 27 import java.util.List ; 28 29 import net.fenyo.gnetwatch.*; 30 import net.fenyo.gnetwatch.GUI.*; 31 import net.fenyo.gnetwatch.actions.Action; 32 import net.fenyo.gnetwatch.targets.*; 33 34 import org.apache.commons.logging.Log; 35 import org.apache.commons.logging.LogFactory; 36 37 42 43 public class FloodQueue extends Queue implements Runnable { 44 private static Log log = LogFactory.getLog(FloodQueue.class); 45 46 51 public FloodQueue(final String name, final Config config) { 53 super(name, config); 54 setDescription(config.getString("dedicated_for_flooding")); 55 } 56 57 62 protected int getCycleDelay() { 64 return 0; 65 } 66 67 72 73 protected int getEmptyCycleDelay() { 75 return 1000; 76 } 77 78 83 protected int getActionDelay() { 85 return 0; 86 } 87 } 88 | Popular Tags |