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

com.qiniu.interfaces.ILineProcess Maven / Gradle / Ivy

package com.qiniu.interfaces;

import java.io.IOException;
import java.util.List;

public interface ILineProcess {

    ILineProcess clone() throws CloneNotSupportedException;

    void changeSaveOrder(String order) throws IOException;

    String getProcessName();

    default void setAutoIncrease(boolean autoIncrease) {}

    default void setBatchSize(int batchSize) throws IOException {}

    default void setRetryTimes(int retryTimes) {}

    default void setNextProcessor(ILineProcess nextProcessor) {}

    default void setCheckType(String checkType) {}

    default ILineProcess getNextProcessor() {
        return null;
    }

    String processLine(T line) throws IOException;

    void processLine(List list) throws IOException;

    void closeResource();

    void cancel();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy