1 22 package org.jboss.test.util.scheduler; 23 24 import java.util.Date ; 25 26 import org.jboss.logging.Logger; 27 import org.jboss.varia.scheduler.Schedulable; 28 29 33 public class TestSchedulable 34 implements Schedulable 35 { 36 private static final Logger log = Logger.getLogger(TestSchedulable.class); 37 38 private String name; 39 private int data; 40 41 public TestSchedulable(String name, int data) 42 { 43 this.name = name; 44 this.data = data; 45 } 46 47 50 public void perform(Date time, long remaining) 51 { 52 log.info("Schedulable Examples is called at: " + time + 53 ", remaining repetitions: " + remaining + 54 ", name: " + name + ", data: " + data); 55 } 56 } | Popular Tags |