All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.client.hotrod.impl.operations.AbstractCacheOperation Maven / Gradle / Ivy

There is a newer version: 9.3.1.Final
Show newest version
package org.infinispan.client.hotrod.impl.operations;

import java.util.Objects;

import org.infinispan.client.hotrod.DataFormat;
import org.infinispan.client.hotrod.configuration.Configuration;
import org.infinispan.client.hotrod.impl.InternalRemoteCache;

public abstract class AbstractCacheOperation extends AbstractHotRodOperation {
   protected final InternalRemoteCache internalRemoteCache;

   protected AbstractCacheOperation(InternalRemoteCache internalRemoteCache) {
      this.internalRemoteCache = Objects.requireNonNull(internalRemoteCache);
   }

   @Override
   public byte[] getCacheNameBytes() {
      return internalRemoteCache.getNameBytes();
   }

   @Override
   public String getCacheName() {
      return internalRemoteCache.getName();
   }

   @Override
   public DataFormat getDataFormat() {
      return internalRemoteCache.getDataFormat();
   }

   @Override
   public int flags() {
      return internalRemoteCache.flagInt();
   }

   public Configuration getConfiguration() {
      return internalRemoteCache.getRemoteCacheContainer().getConfiguration();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy