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

com.talanlabs.processmanager.messages.injector.IInjector Maven / Gradle / Ivy

The newest version!
package com.talanlabs.processmanager.messages.injector;

import com.talanlabs.processmanager.messages.gate.Gate;
import com.talanlabs.processmanager.messages.trigger.event.FileTriggerEvent;
import java.io.File;

/**
 * An interface for injectors
 */
public interface IInjector {

    Object inject(FileTriggerEvent evt);

    Gate getGate();

    void setGate(Gate g);

    /**
     * The name of the injector (and also agent)
     */
    String getName();

    /**
     * Inject a new singular message (file is optional)
     */
    void injectMessage(String content, File file);

    /**
     * Delay of refresh
     */
    long getDelay();

    /**
     * Get the working directory
     */
    File getWorkDir();

    String getAcceptedPath();

    String getRejectedPath();

    String getRetryPath();

    String getArchivePath();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy