Package akka.util

Examples of akka.util.FiniteDuration


     *
     * @param envelop envelop to send
     */
    public static void sendMail(Envelop envelop) {
        EnvelopJob envelopJob = new EnvelopJob(envelop);
        final FiniteDuration delay = Duration.create(DELAY, TimeUnit.SECONDS);
        Akka.system().scheduler().scheduleOnce(delay, envelopJob);
    }
View Full Code Here

TOP

Related Classes of akka.util.FiniteDuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.