Class MemcachedStorageCapabilities
- java.lang.Object
-
- org.opensaml.storage.impl.memcached.MemcachedStorageCapabilities
-
- All Implemented Interfaces:
StorageCapabilities,StorageCapabilitiesEx
public class MemcachedStorageCapabilities extends Object implements StorageCapabilitiesEx
Provides a description of memcached capabilities. Note that only value size is configurable since memcached supports increasing the maximum slab size via the-Iflag.MemcachedStorageServicesupports arbitrarily large context names and keys by hashing values longer than 250 bytes, which is the maximum size allowed.
-
-
Field Summary
Fields Modifier and Type Field Description private static longdefaultMaxValueMemcached supports 1M slabs (i.e.private longvalueSizeMaximum size of memcached values.
-
Constructor Summary
Constructors Constructor Description MemcachedStorageCapabilities()Constructor.MemcachedStorageCapabilities(long maxValueSize)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetContextSize()intgetKeySize()longgetValueSize()booleanisClustered()booleanisServerSide()
-
-
-
Field Detail
-
defaultMaxValue
private static long defaultMaxValue
Memcached supports 1M slabs (i.e. values) by default and issues warning on increase.
-
valueSize
@Positive private final long valueSize
Maximum size of memcached values.
-
-
Constructor Detail
-
MemcachedStorageCapabilities
public MemcachedStorageCapabilities()
Constructor.
-
MemcachedStorageCapabilities
public MemcachedStorageCapabilities(@Positive long maxValueSize)
Constructor.- Parameters:
maxValueSize- maximum value size
-
-
Method Detail
-
getContextSize
public int getContextSize()
- Specified by:
getContextSizein interfaceStorageCapabilities
-
getKeySize
public int getKeySize()
- Specified by:
getKeySizein interfaceStorageCapabilities
-
getValueSize
public long getValueSize()
- Specified by:
getValueSizein interfaceStorageCapabilities
-
isServerSide
public boolean isServerSide()
- Specified by:
isServerSidein interfaceStorageCapabilitiesEx
-
isClustered
public boolean isClustered()
- Specified by:
isClusteredin interfaceStorageCapabilitiesEx
-
-