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

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

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

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

/**
 * Command that cancels a previously scheduled item.
 * @param  the scheduled entry identifier type
 * @param  the scheduled entry metadata type
 * @author Paul Ferraro
 */
public class CancelCommand extends AbstractPrimaryOwnerCommand {

	public CancelCommand(I id) {
		super(id);
	}

	@Override
	public Void execute(Scheduler scheduler) {
		scheduler.cancel(this.getId());
		return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy