Code example for Timer

Methods: cancel

0
	} 
 
	public void update() { 
		status++;
		if (status >= maxStatus) {
			t.cancel();
		} 
		((SimpleToadletServer) ctx.getContainer()).pushDataManager.updateElement(getUpdaterId(ctx.getUniqueId()));
	} 
 
	@Override 
	public void dispose() { 
		t.cancel();
	} 
 
	@Override 
	public String getUpdaterId(String requestId) {
		return getId(requestId,id);
	} 
	 
	public static String getId(String requestId,String id){