Package cosc561.searchengine.ejb

Source Code of cosc561.searchengine.ejb.SearchEngineTimerService

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package cosc561.searchengine.ejb;

import javax.annotation.Resource;
import javax.ejb.ScheduleExpression;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.ejb.Timeout;
import javax.ejb.Timer;
import javax.ejb.TimerConfig;
import javax.ejb.TimerService;

/**
*
* @author jraymond
*/
@Startup
@Singleton
public class SearchEngineTimerService
{
    @Resource
    TimerService timerService;

    public void startTimer()
    {
        TimerConfig timerConfig = new TimerConfig();
        ScheduleExpression scheduleExpression = new ScheduleExpression();

//        Timer timer = timerService.createCalendarTimer();
    }

    @Timeout
    public void handleTimeout(Timer timer)
    {

    }
}
TOP

Related Classes of cosc561.searchengine.ejb.SearchEngineTimerService

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.