org.infinispan.commands.read.GetAllCommand Maven / Gradle / Ivy
package org.infinispan.commands.read;
import org.infinispan.commands.AbstractFlagAffectedCommand;
import org.infinispan.commands.Visitor;
import org.infinispan.commons.marshall.MarshallUtil;
import org.infinispan.container.InternalEntryFactory;
import org.infinispan.container.entries.CacheEntry;
import org.infinispan.container.entries.InternalCacheEntry;
import org.infinispan.context.Flag;
import org.infinispan.context.InvocationContext;
import org.infinispan.distribution.ch.ConsistentHash;
import org.infinispan.lifecycle.ComponentStatus;
import org.infinispan.remoting.transport.Address;
import org.infinispan.util.logging.Log;
import org.infinispan.util.logging.LogFactory;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import static org.infinispan.commons.util.Util.toStr;
/**
* Retrieves multiple entries at once.
*
* @author Radim Vansa <[email protected]>
*/
// TODO: revise the command hierarchy, e.g. this should not implement MetadataAwareCommand
public class GetAllCommand extends AbstractFlagAffectedCommand {
public static final byte COMMAND_ID = 44;
private static final Log log = LogFactory.getLog(GetAllCommand.class);
private static final boolean trace = log.isTraceEnabled();
private Collection> keys;
private boolean returnEntries;
private ConsistentHash ch;
// TODO: remotely fetched are because of compatibility - can't we just always return InternalCacheEntry and have
// the unboxing executed as the topmost interceptor?
private Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy