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

de.mhus.osgi.api.cluster.SchedulerClusterServiceAdapter Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
package de.mhus.osgi.api.cluster;

import de.mhus.lib.core.schedule.TimerTaskInterceptor;
import de.mhus.osgi.api.scheduler.SchedulerServiceAdapter;

public abstract class SchedulerClusterServiceAdapter extends SchedulerServiceAdapter {

    private TimerTaskInterceptor interceptor;
    private boolean service = true;

    @Override
    public synchronized TimerTaskInterceptor getInterceptor() {
        if (interceptor == null) {
            interceptor = new TimerTaskClusterInterceptor(service);
        }
        return interceptor;
    }

    public boolean isService() {
        return service;
    }

    protected void setStack(boolean service) {
        this.service = service;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy