Code example for ScheduledFuture

Methods: cancel

0
	public void cancel() 
	{ 
		_isActive = false;
		 
		if (_schedular != null)
			_schedular.cancel(false);
		 
		getQuest().removeQuestTimer(this);
	} 
	 
	/** 
	 * public method to compare if this timer matches with the key attributes passed. 
	 * @param quest : Quest instance to which the timer is attached 
	 * @param name : Name of the timer 
	 * @param npc : Npc instance attached to the desired timer (null if no npc attached) 
	 * @param player : Player instance attached to the desired timer (null if no player attached) 
	 * @return  
	 */ 
	public boolean isMatch(Quest quest, String name, L2Npc npc, L2PcInstance player)
	{ 
		if ((quest == null) || (name == null))