Class ValueFactoryResult<V>

java.lang.Object
com.scaleout.client.caching.ValueFactoryResult<V>
Type Parameters:
V - the value type.

public class ValueFactoryResult<V> extends Object
Created by a ValueFactory implementation.
  • Constructor Details

    • ValueFactoryResult

      public ValueFactoryResult(V value)
      Creates a value factory result with the loaded value.
      Parameters:
      value - the value.
    • ValueFactoryResult

      public ValueFactoryResult(V value, CreatePolicy policy)
      Creates a value factory result with a value and a custom create policy.
      Parameters:
      value - the value.
      policy - the policy.
    • ValueFactoryResult

      public ValueFactoryResult(V value, CreatePolicy policy, com.scaleout.client.messaging.messages.TagHolder tagHolder)
      Creates a value factory result with a value, a custom create policy, and a tag holder for query.
      Parameters:
      value - the value.
      policy - the policy.
      tagHolder - the tag holder.
  • Method Details

    • getCreatePolicy

      public CreatePolicy getCreatePolicy()
      Retrieves the creation policy.
      Returns:
      the policy.
    • getValue

      public V getValue()
      Retrieves the value.
      Returns:
      the value.
    • getTagHolder

      public com.scaleout.client.messaging.messages.TagHolder getTagHolder()
      Retrieves the tag holder.
      Returns:
      the tag holder.