org.infinispan.commands.CancelCommand Maven / Gradle / Ivy
package org.infinispan.commands;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import org.infinispan.commands.remote.BaseRpcCommand;
import org.infinispan.commons.marshall.MarshallUtil;
import org.infinispan.util.ByteString;
import org.infinispan.util.concurrent.CompletableFutures;
import org.infinispan.util.logging.Log;
import org.infinispan.util.logging.LogFactory;
/**
* Command to cancel commands executing in remote VM
*
* @author Vladimir Blagojevic
* @since 5.2
*/
public class CancelCommand extends BaseRpcCommand {
private static final Log log = LogFactory.getLog(CancelCommand.class);
public static final byte COMMAND_ID = 34;
private UUID commandToCancel;
private CancellationService service;
private CancelCommand() {
super(null);
}
public CancelCommand(ByteString ownerCacheName) {
super(ownerCacheName);
}
public CancelCommand(ByteString ownerCacheName, UUID commandToCancel) {
super(ownerCacheName);
this.commandToCancel = commandToCancel;
}
public void init(CancellationService service) {
this.service = service;
}
@Override
public CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy