You need to lock your method so that only 1 thread at a time can access it.
If your app runs as a single instance then you can either “synchronize” your method or use the java.concurrent library.
Otherwise you need to combine it with something like Shedlock or Quartz.