TIBCO Adapter SDK C++ Reference
MTimer
Class Hierarchy | C++ Classes and Methods | Members | Methods
After a specified time interval, an MTimer event source triggers the generation of an MTimerEvent.

The MTimer class provides configurable repeating and non-repeating timers.

To associate a listener with a timer, call its inherited addListener() method (see MEventSource::addListener()).

Remarks
When you instantiate a timer, it is created as either a once-only timer or as a repeating timer.

  • A repeating timer reschedules itself each time it triggers; the effect is a potentially endless series of timer events at a regular interval.

  • A once-only timer triggers only once.
An MTimer is one of the available event sources; another source is the MSubscriber, which sends data events.

Timer events are unique among event activities. When an application creates a timer, it guarantees that timer events will occur and will occur at predictable times. In contrast, the triggering of other events is not under control of the application.

Inherited Methods
MTimer::getClassName() Return the char* "MTimer" when called for an instance of MTimer.

MEventSource::addListener() Adds an event listener to this event source.

MEventSource::removeListener() Removes an event listener from this event source.

Declaration
class MTimer : public MEventSource;
Class Hierarchy
MObject
    MComponent
        MEventSource
            MTimer
File
MTimer.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.