
org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation Maven / Gradle / Ivy
The newest version!
package org.infinispan.client.hotrod.impl.operations;
import org.infinispan.client.hotrod.DataFormat;
import org.infinispan.client.hotrod.impl.protocol.HotRodConstants;
public abstract class AbstractNoCacheHotRodOperation extends AbstractHotRodOperation {
@Override
public String getCacheName() {
return HotRodConstants.DEFAULT_CACHE_NAME;
}
@Override
public byte[] getCacheNameBytes() {
return HotRodConstants.DEFAULT_CACHE_NAME_BYTES;
}
@Override
public int flags() {
return 0;
}
@Override
public Object getRoutingObject() {
return null;
}
@Override
public boolean supportRetry() {
// Operations not tied to a cache shouldn't be retried normally
return false;
}
@Override
public DataFormat getDataFormat() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy