Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set internal time resolution #194

Closed
AlvaroVega opened this issue Mar 9, 2022 · 2 comments
Closed

set internal time resolution #194

AlvaroVega opened this issue Mar 9, 2022 · 2 comments

Comments

@AlvaroVega
Copy link
Member

AlvaroVega commented Mar 9, 2022

https://esper.espertech.com/release-8.4.0/reference-esper/html_single/#apiruntime-time-internal

[17.6.1.4. Internal Timer Settings]()

This option can be used to disable the internal timer thread and such have the application supply external time events, as well as to set a timer resolution.

The next code snippet shows how to disable the internal timer thread via the configuration API:

[Configuration config = new Configuration();
config.getRuntime().getThreading().setInternalTimerEnabled(false);]()

This snippet of XML configuration leaves the internal timer enabled (the default) and sets a resolution of 200 milliseconds (the default is 100 milliseconds):

[<esper-configuration xmlns="http://www.espertech.com/schema/esper">
  <runtime>
    <threading>
      <internal-timer enabled="true" msec-resolution="200"/>
    </threading>
  </runtime>
</esper-configuration>]()

We recommend that when disabling the internal timer, applications send an external timer event setting the start time before creating statements, such that statement start time is well-defined.
@fgalan
Copy link
Member

fgalan commented Mar 10, 2022

Fixed in PR #195

@fgalan fgalan closed this as completed Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants