Open topic with navigation

TIBCO Rendezvous® 8.8.0

# TibrvTimer()

Constructor

## Declaration

    TibrvTimer(
        TibrvQueue           queue,
        TibrvTimerCallback   callback,
        double               interval,
        java.lang.Object     closure)
      throws TibrvException

## Purpose

Start a timer.

## Remarks

All timers are repeating timers. To simulate a once-only timer, code the callback method to destroy the timer.

Parameter | Description
`queue` | At each time interval, place the event on this event queue.
`callback` | On dispatch, process the event with this interface implementation.
`interval` | The timer triggers its callback method at this repeating interval (in seconds).
`closure` | Store this closure data in the event object.

## Timer Granularity

Express the timer interval (in seconds) as a double (64-bit floating point number). This representation allows microsecond granularity for intervals for over 100 years. The actual granularity of intervals depends on Java implementation constraints, as well as hardware and operating system constraints.

The JNI implementation supports fine-resolution timers through the underlying C layer. Most releases of the JVM limit the Java implementation to 10 millisecond resolution.

## See Also

TibrvEvent.destroy()

TibrvTimerCallback

TibrvTimerCallback.onTimer()

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.