Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java timer

timer.schedule(new TimerTask() {
  @Override
  public void run() {
    // Your database code here
  }
}, 2*60*1000);
// Since Java-8
timer.schedule(() -> /* your database code here */, 2*60*1000);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #timer
ADD COMMENT
Topic
Name
8+1 =