i have one property file which contains some records so i need to delete the records after some time interval let’s take 2 minute or 3 minutes, so how can i do that one?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should create a timer task to perform your action at a future date. Take a look at the Timer API.
I tested a roughly equivalent version of this in the Scala REPL. Here it is: