FileDocCategorySizeDatePackage
SimpleTimer.javaAPI DocAzureus 3.0.3.41921Sat Aug 19 07:31:16 BST 2006org.gudy.azureus2.core3.util

SimpleTimer

public class SimpleTimer extends Object
author
parg

Fields Summary
protected static final Timer
timer
A simple timer class for use by application components that want to schedule low-overhead events (i.e. when fired the event shouldn't take significant processing time as there is a limited thread pool to service it
Constructors Summary
Methods Summary
public static TimerEventaddEvent(java.lang.String name, long when, TimerEventPerformer performer)

		timer = new Timer("Simple Timer",32);
		
		timer.setIndestructable();
		
		timer.setWarnWhenFull();
		
		// timer.setLogging(true);
	
		TimerEvent	res = timer.addEvent( name, when, performer );
				
		return( res );
	
public static TimerEventPeriodicaddPeriodicEvent(java.lang.String name, long frequency, TimerEventPerformer performer)

		TimerEventPeriodic	res = timer.addPeriodicEvent( name, frequency, performer );
				
		return( res );