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

com.github.lontime.extcopper.configuration.PersitenceOption Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.github.lontime.extcopper.configuration;

import java.util.Collections;
import java.util.List;

import lombok.Getter;
import lombok.Setter;
import org.copperengine.core.audit.AbstractAuditTrail;
import org.copperengine.core.persistent.PersistentProcessorPool;
import org.copperengine.core.persistent.txn.CopperTransactionController;

/**
 * PersitenceOption.
 * @author lontime
 * @since 1.0
 */
@Getter
@Setter
public class PersitenceOption {

    private String datasource;

    private String engineId;

    /**
     * workflow class path.
     */
    private List wfClasspathes;

    /**
     * @see CopperTransactionController -> maxConnectRetries
     */
    private Integer maxConnectRetries = 10;
    /**
     * ProcessorPool.
     */
    private List processorPools = Collections.emptyList();

    private String executorService;

    private Integer numberOfBatcherThreads = 3;

    private Integer statLoggerIntervalSeconds;

    private AuditTrail auditTrail;

    @Getter
    @Setter
    public static class ProcessorPool {
        private String id = PersistentProcessorPool.DEFAULT_POOL_ID;
        private Integer numberOfThreads;
        private Integer lowerThreshold;
        private Integer upperThreshold;
        private Integer upperThresholdReachedWaitMSec;
        private Integer emptyQueueWaitMSec = 2;
        private Integer dequeueBulkSize = 50;
        private Integer shutdownWaitIntervalMSec;
        private Integer threadPriority;
    }

    @Getter
    @Setter
    public static class AuditTrail {
        private Integer level;
        private String dbTable;
        private Boolean compressed = Boolean.FALSE;
        private List mapping;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy