站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 varia API Documentation 英文版文档

SchedulableExample (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.varia.scheduler.example
Class SchedulableExample

java.lang.Object
  extended byorg.jboss.varia.scheduler.example.SchedulableExample
All Implemented Interfaces:
Schedulable

public class SchedulableExample
extends Object
implements Schedulable

A simple Schedulable implementaion that logs when an event occurs.

Version:
$Revision: 1.1 $
Author:
Andreas Schaefer, Cameron (camtabor)

Constructor Summary
SchedulableExample(String pName, int pValue)
           
 
Method Summary
 void perform(Date pTimeOfCall, long pRemainingRepetitions)
          Just log the call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulableExample

public SchedulableExample(String pName,
                          int pValue)
Method Detail

perform

public void perform(Date pTimeOfCall,
                    long pRemainingRepetitions)
Just log the call

Specified by:
perform in interface Schedulable
Parameters:
pTimeOfCall - Date/Time of the scheduled call
pRemainingRepetitions - Number of the remaining repetitions which is -1 if there is an unlimited number of repetitions.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.