Answer the question
In order to leave comments, you need to log in
How to execute code in Java once on a certain date?
Using the ScheduledExecutorService, what parameters should be passed to it so that it starts at a certain time and does not start again? Everywhere on "SO" only saw that "periodically" and "intervals".
Answer the question
In order to leave comments, you need to log in
https://docs.oracle.com/javase/7/docs/api/java/uti...
Isn't the ScheduledExecutorService.schedule() method suitable for you?
schedule(Runnable command, long delay, TimeUnit unit)
Creates and executes a one-shot action that becomes enabled after the given delay.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question