1 23 package com.sun.ejb.containers; 24 25 import java.io.Serializable ; 26 27 import java.util.Date ; 28 import java.util.logging.Level ; 29 import java.util.logging.Logger ; 30 import java.util.TimerTask ; 31 32 import javax.ejb.Timer ; 33 34 import com.sun.logging.LogDomains; 35 36 41 public class EJBTimerTask extends TimerTask { 42 43 private Date timeout_; 44 private TimerPrimaryKey timerId_; 45 private EJBTimerService timerService_; 46 47 private static Logger _logger = LogDomains.getLogger(LogDomains.EJB_LOGGER); 48 49 EJBTimerTask(Date timeout, TimerPrimaryKey timerId, 50 EJBTimerService timerService) 51 { 52 timeout_ = timeout; 53 timerId_ = timerId; 54 timerService_ = timerService; 55 } 56 57 public void run() { 58 timerService_.taskExpired(timerId_); 60 } 61 62 public Date getTimeout() { 63 return timeout_; 64 } 65 66 } 67 68 | Popular Tags |