public class ProviderDataStructureItem<TValue> extends ProviderItemBase
Constructor | Description |
---|---|
ProviderDataStructureItem(long counter) |
Initializes an instance of counter Item.
|
ProviderDataStructureItem(DistributedDataStructureType type) |
Initializes an instance of ProviderDataStructureItem.
|
ProviderDataStructureItem(TValue value) |
Initializes an instance of DataStructureItem Item.
|
ProviderDataStructureItem(TValue value,
DistributedDataStructureType type) |
Initializes an instance of CacheItem.
|
Modifier and Type | Method | Description |
---|---|---|
long |
getCounter() |
Gets the value of the counter.
|
TValue |
getData() |
Gets the value stored in ProviderDataStructureItem.
|
<T extends JsonValueBase> |
getDataAsJson() |
Gets the value of the datastructure in the form of
JsonValueBase . |
DistributedDataStructureType |
getType() |
Gets the type of the DistributedDataStructure.
|
void |
setCounter(long value) |
Sets the value of the counter.
|
void |
setData(TValue value) |
Sets the value that is stored in ProviderDataStructureItem.
|
void |
setType(DistributedDataStructureType value) |
Sets the type of the DistributedDataStructure.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependency, getExpiration, getGroup, getIsJavaReadThrough, getItemPriority, getNamedTags, getResyncItemOnExpiration, getResyncOptions, getResyncProviderName, getTags, setDependency, setExpiration, setGroup, setIsJavaReadThrough, setItemPriority, setNamedTags, setResyncOptions, setTags
public ProviderDataStructureItem(TValue value) throws OperationFailedException
value
- Data object.OperationFailedException
public ProviderDataStructureItem(long counter)
counter
- Value to initiaize with.public ProviderDataStructureItem(DistributedDataStructureType type)
type
- DistributedDataStructureType
containing type of distributed data structure.public ProviderDataStructureItem(TValue value, DistributedDataStructureType type) throws OperationFailedException
value
- Data object.type
- DistributedDataStructureType
containing type of distributed value type.OperationFailedException
public final DistributedDataStructureType getType()
public final void setType(DistributedDataStructureType value)
value
- The type of the DistributedDataStructure.public TValue getData() throws OperationFailedException
OperationFailedException
public void setData(TValue value) throws OperationFailedException
value
- The value to be stored in ProviderDataStructureItem.OperationFailedException
public final long getCounter()
public final void setCounter(long value)
value
- The value that is to be set as counter value.public <T extends JsonValueBase> T getDataAsJson()
JsonValueBase
.T
- Type of the JsonValueBase.