public class Every extends Object
Every every = new Every();
..
if (every()) {
// do something for example publish a metric or log an important info message
// by default this is called once an hour.
}
You can change the default every period using -Dpunch.every=30 for example,
to have all every users call that every 30 seconds.Copyright © 2014–2022. All rights reserved.