Search in sources :

Example 1 with CubedEventRunnable

use of co.melondev.cubedpay.event.CubedEventRunnable in project CubedPay-Java by MelonDevelopment.

the class CubedPayAPI method startEvents.

default void startEvents(String shopID) {
    if (EventMap.eventMap.containsKey(shopID))
        return;
    ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
    executor.schedule(new CubedEventRunnable(this, shopID), 20, TimeUnit.SECONDS);
    EventMap.eventMap.put(shopID, executor);
}
Also used : CubedEventRunnable(co.melondev.cubedpay.event.CubedEventRunnable)

Aggregations

CubedEventRunnable (co.melondev.cubedpay.event.CubedEventRunnable)1