Driving Execution At a Fixed Rate

If I want to drive an action in a module to happen say every 1 minute, is the following a valid way to do it?

gatewayContext.getExecutionManager().registerAtFixedRate({params})

Or, what is everyone's best practices for driving repeated actions/checks at a certain rate inside a module.

Thanks,

Nick

Edit: would be combined with a runnable

Yes, that's the simplest answer. If you expect substantial load with many such tasks, consider making your own executor service with a dedicated thread pool.

1 Like