method a() sends data to method b(), how to execute method c() if method b() has not been called for more than N seconds and repeat this cycle if method b() receives data again?
public void methodB(byte[] audioData) throws IOException {
byte[] transcodedVoice = transcodeVoice(audioData);
recognizer.acceptWaveForm(transcodedVoice, transcodedVoice.length);
}
public void methodC() {
//do Something
System.out.println("Method B stops getting data")
}