@FunctionalInterface public interface KeyValueMetadataSizeCalculator<K,V>
Modifier and Type | Method and Description |
---|---|
default long |
calculateSize(K key,
V value,
Metadata metadata)
Method used to calculate how much memory in size the key, value and metadata use.
|
long |
calculateSize(K key,
V value,
Metadata metadata,
PrivateMetadata internalMetadata)
Method used to calculate how much memory in size the key, value and metadata use.
|
default long calculateSize(K key, V value, Metadata metadata)
key
- The key for this entry to be used in size calculationvalue
- The value for this entry to be used in size calculationmetadata
- The metadata for this entry to be used in size calculationlong calculateSize(K key, V value, Metadata metadata, PrivateMetadata internalMetadata)
key
- The key for this entry to be used in size calculationvalue
- The value for this entry to be used in size calculationmetadata
- The metadata for this entry to be used in size calculationinternalMetadata
- The internal metadata for this entry to be used in size calculationCopyright © 2021 JBoss by Red Hat. All rights reserved.