Package com.scaleout.client.caching
Class ValueFactoryResult<V>
java.lang.Object
com.scaleout.client.caching.ValueFactoryResult<V>
- Type Parameters:
V
- the value type.
Created by a
ValueFactory
implementation.-
Constructor Summary
ConstructorDescriptionValueFactoryResult
(V value) Creates a value factory result with the loaded value.ValueFactoryResult
(V value, CreatePolicy policy) Creates a value factory result with a value and a custom create policy.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. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the creation policy.com.scaleout.client.messaging.messages.TagHolder
Retrieves the tag holder.getValue()
Retrieves the value.
-
Constructor Details
-
ValueFactoryResult
Creates a value factory result with the loaded value.- Parameters:
value
- the value.
-
ValueFactoryResult
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
Retrieves the creation policy.- Returns:
- the policy.
-
getValue
Retrieves the value.- Returns:
- the value.
-
getTagHolder
public com.scaleout.client.messaging.messages.TagHolder getTagHolder()Retrieves the tag holder.- Returns:
- the tag holder.
-