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

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

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

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

/**
 * Command that determine if a given entry is known to the scheduler.
 * @param  the scheduled entry identifier type
 * @param  the scheduled entry metadata type
 * @author Paul Ferraro
 */
public class ContainsCommand extends AbstractPrimaryOwnerCommand {

	ContainsCommand(I id) {
		super(id);
	}

	@Override
	public Boolean execute(Scheduler scheduler) {
		return scheduler.contains(this.getId());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy