18#ifndef _DECAF_UTIL_TIMER_H_
19#define _DECAF_UTIL_TIMER_H_
64 Timer operator=(
const Timer&);
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
Wrapper class around a time value in milliseconds.
Definition Date.h:34
void schedule(TimerTask *task, long long delay, long long period)
Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay.
Timer(const std::string &name)
Create a new Timer whose associated thread is assigned the name given.
void schedule(const decaf::lang::Pointer< TimerTask > &task, long long delay)
Schedules the specified task for execution after the specified delay.
void schedule(const decaf::lang::Pointer< TimerTask > &task, const Date &time)
Schedules the specified task for execution at the specified time.
void scheduleAtFixedRate(const decaf::lang::Pointer< TimerTask > &task, const Date &firstTime, long long period)
Schedules the specified task for repeated fixed-rate execution, beginning at the specified time.
bool awaitTermination(long long timeout, const decaf::util::concurrent::TimeUnit &unit)
The caller will block until the Timer has completed termination meaning all tasks that where schedule...
void scheduleAtFixedRate(TimerTask *task, const Date &firstTime, long long period)
Schedules the specified task for repeated fixed-rate execution, beginning at the specified time.
void cancel()
Terminates this timer, discarding any currently scheduled tasks.
void schedule(const decaf::lang::Pointer< TimerTask > &task, const Date &firstTime, long long period)
Schedules the specified task for repeated fixed-delay execution, beginning at the specified time.
void scheduleAtFixedRate(TimerTask *task, long long delay, long long period)
Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
void schedule(TimerTask *task, const Date &firstTime, long long period)
Schedules the specified task for repeated fixed-delay execution, beginning at the specified time.
void scheduleAtFixedRate(const decaf::lang::Pointer< TimerTask > &task, long long delay, long long period)
Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
void schedule(const decaf::lang::Pointer< TimerTask > &task, long long delay, long long period)
Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay.
int purge()
Removes all canceled tasks from this timer's task queue.
void schedule(TimerTask *task, long long delay)
Schedules the specified task for execution after the specified delay.
void schedule(TimerTask *task, const Date &time)
Schedules the specified task for execution at the specified time.
A Base class for a task object that can be scheduled for one-time or repeated execution by a Timer.
Definition TimerTask.h:42
A TimeUnit represents time durations at a given unit of granularity and provides utility methods to c...
Definition TimeUnit.h:62
#define DECAF_API
Definition Config.h:29
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25