All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clickzetta.platform.common.NotifyScheduledExecutorService Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.clickzetta.platform.common;

import com.clickzetta.platform.client.CloseableInternal;

import java.io.IOException;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;

public interface NotifyScheduledExecutorService extends CloseableInternal {

  void schedule(Runnable command, long delay, TimeUnit unit) throws IOException;

   Future schedule(Callable callable, long delay, TimeUnit unit) throws IOException;

  void notifyAllScheduledTask();

  class Builder {
    private Builder() {
    }

    public static NotifyScheduledExecutorService build(String name, int corePoolSize) {
      return new NotifyScheduledExecutorServiceImpl(name, corePoolSize);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy