Skip to content

Provide possibility to execute metrics update in the same thread #62

@rc-mairovichaa

Description

@rc-mairovichaa

Now ScheduledExecutorService is in use and there is no default implementation, which allows to execute metrics updates in the same thread they took place. Meantime, it seems to be bad that generation of slices, event handling and expiration will be handled in the same thread.
It's suggested to introduce such implementation (or change MetricRegistry constructors to support same thread execution) considering the point about still handling other events in a different thread.

Such feature could be useful for

  • testing
  • use cases when context switching should avoided

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions