Class ProviderDataStructureItem<TValue>


  • public class ProviderDataStructureItem<TValue>
    extends ProviderItemBase
    ProviderDataStructureItem is just like a CacheItem , but it has some limited fields
    • Constructor Detail

      • ProviderDataStructureItem

        public ProviderDataStructureItem​(TValue value)
        Initializes an instance of DataStructureItem Item.
        Parameters:
        value - Data object.
      • ProviderDataStructureItem

        public ProviderDataStructureItem​(long counter)
        Initializes an instance of counter Item.
        Parameters:
        counter - Value to initiaize with.
    • Method Detail

      • getType

        public final DistributedDataStructureType getType()
        Gets the type of the DistributedDataStructure.
        Returns:
        The type of the DistributedDataStructure.
      • setType

        public final void setType​(DistributedDataStructureType value)
        Sets the type of the DistributedDataStructure.
        Parameters:
        value - The type of the DistributedDataStructure.
      • getData

        public TValue getData()
        Gets the value stored in ProviderDataStructureItem.
        Returns:
        The value stored in ProviderDataStructureItem.
      • setData

        public void setData​(TValue value)
        Sets the value that is stored in ProviderDataStructureItem.
        Parameters:
        value - The value to be stored in ProviderDataStructureItem.
      • getCounter

        public final long getCounter()
        Gets the value of the counter.
        Returns:
        The value of the counter.
      • setCounter

        public final void setCounter​(long value)
        Sets the value of the counter.
        Parameters:
        value - The value that is to be set as counter value.
      • getDataAsJson

        public <T extends JsonValueBase> T getDataAsJson()
        Gets the value of the datastructure in the form of JsonValueBase.
        Type Parameters:
        T - Type of the JsonValueBase.
        Returns:
        The JsonValueBase instance.