What is the run method? And what data needs to be send at what time interval?

some code would make it clearer.