@Immutable public class ValueWrapper<V extends Serializable> extends Object implements Serializable
Map based
caches where a significant portion of keys matches the corresponding value
exactly.| Modifier and Type | Class and Description |
|---|---|
static class |
ValueWrapper.Representation
Indication of how the key of this cache entry represents the cache value.
|
| Constructor and Description |
|---|
ValueWrapper()
Constructs an empty wrapper.
|
ValueWrapper(Exception exception)
Constructs a wrapper that is used to indicate that the key that maps to
this value cannot be used to generate a valid value
|
ValueWrapper(V value)
Wraps a value while using the
USE_VALUE representation. |
| Modifier and Type | Method and Description |
|---|---|
String |
getExceptionMessage()
Returns the message describing the invalidity of the key that maps
to this instance.
|
ValueWrapper.Representation |
getRepresentation() |
V |
getValue()
Returns the wrapped value, or
null if the representation used in
this instance is not USE_VALUE; |
String |
toString() |
public ValueWrapper()
public ValueWrapper(Exception exception)
exception - Describes the invalidity of the key.public ValueWrapper(V value)
USE_VALUE representation.value - The value that is wrapped.public V getValue()
null if the representation used in
this instance is not USE_VALUE;public ValueWrapper.Representation getRepresentation()
public String getExceptionMessage()
Copyright © 2009–2020 Ignite Realtime. All rights reserved.