org.infinispan.stream.impl.StreamSegmentResponseCommand Maven / Gradle / Ivy
package org.infinispan.stream.impl;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import org.infinispan.commons.marshall.MarshallUtil;
import org.infinispan.remoting.transport.Address;
import org.infinispan.util.ByteString;
import org.infinispan.util.concurrent.CompletableFutures;
/**
* A stream response command that also returns back suspected segments that need to be retried
* @param the response type
*/
public class StreamSegmentResponseCommand extends StreamResponseCommand {
public static final byte COMMAND_ID = 49;
protected Set missedSegments;
// Only here for CommandIdUniquenessTest
protected StreamSegmentResponseCommand() { }
public StreamSegmentResponseCommand(ByteString cacheName) {
super(cacheName);
}
public StreamSegmentResponseCommand(ByteString cacheName, Address origin, Object id, boolean complete, R response,
Set missedSegments) {
super(cacheName, origin, id, complete, response);
this.missedSegments = missedSegments;
}
@Override
public CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy