org.infinispan.manager.impl.ReplicableCommandRunnable Maven / Gradle / Ivy
package org.infinispan.manager.impl;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.concurrent.CompletableFuture;
import org.infinispan.commands.ReplicableCommand;
import org.infinispan.util.concurrent.CompletableFutures;
/**
* Replicable Command that runs the given Runnable
*
* @author wburns
* @since 8.2
*/
public class ReplicableCommandRunnable implements ReplicableCommand {
public static final byte COMMAND_ID = 59;
private Runnable runnable;
public ReplicableCommandRunnable() {
}
public ReplicableCommandRunnable(Runnable runnable) {
this.runnable = runnable;
}
@Override
public CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy