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

org.infinispan.scripting.impl.ScriptTask Maven / Gradle / Ivy

There is a newer version: 15.1.1.Final
Show newest version
package org.infinispan.scripting.impl;

import java.util.Set;

import org.infinispan.tasks.Task;
import org.infinispan.tasks.TaskExecutionMode;

public class ScriptTask implements Task {

   private final String name;
   private final TaskExecutionMode mode;
   private final Set parameters;

   ScriptTask(String name, TaskExecutionMode mode, Set parameters) {
      this.name = name;
      this.mode = mode;
      this.parameters = parameters;
   }

   @Override
   public String getName() {
      return name;
   }

   @Override
   public String getType() {
      return "Script";
   }

   @Override
   public TaskExecutionMode getExecutionMode() {
      return mode;
   }

   @Override
   public Set getParameters() {
      return parameters;
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy