Lisener should run the void go(int param) method, but if the frequency of the launches is less than a second, then this should be considered a parasitic event. And the go method should not be run.
Those. you need to implement the void noiseFilter(int param) method, which would run go(param) in case the frequency of generating a log of less than 1 Hertz (no more than 1 time per second).
Help a newbie.
PS Time binding is not super critical, since 1Hz is a huge threshold, which covers the parasitic frequency tenfold.