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

org.wildfly.clustering.server.infinispan.scheduler.PrimaryOwnerSchedulerConfiguration Maven / Gradle / Ivy

/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.server.infinispan.scheduler;

import java.util.function.BiFunction;
import java.util.function.Function;

import io.github.resilience4j.retry.RetryConfig;

import org.wildfly.clustering.server.infinispan.CacheContainerGroupMember;
import org.wildfly.clustering.server.infinispan.dispatcher.CacheContainerCommandDispatcherFactory;

/**
 * Encapsulates configuration of a {@link PrimaryOwnerScheduler}.
 * @param  the scheduled entry identifier type
 * @param  the scheduled entry metadata type
 * @author Paul Ferraro
 */
public interface PrimaryOwnerSchedulerConfiguration {

	String getName();

	CacheContainerCommandDispatcherFactory getCommandDispatcherFactory();

	Scheduler getScheduler();

	Function getAffinity();

	default BiFunction> getScheduleCommandFactory() {
		return ScheduleWithTransientMetaDataCommand::new;
	}

	RetryConfig getRetryConfig();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy