Class ClusteredProperties
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.ClusteredProperties
-
- All Implemented Interfaces:
Task.Properties,com.tangosol.io.ExternalizableLite,com.tangosol.io.pof.PortableObject,Serializable
public class ClusteredProperties extends Object implements Task.Properties, com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject
A clustered implementation of aTask.Properties.- Since:
- 21.12
- Author:
- bo, lh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusteredProperties.PropertyKey<T extends Serializable>Property key.static classClusteredProperties.PropertyValue<T extends Serializable>Property value.static classClusteredProperties.SetPropertyValueProcessor<K extends Serializable,V extends Serializable>AnInvocableMap.EntryProcessorfor inserting/updatingClusteredProperties.PropertyKey/ClusteredProperties.PropertyValuemappings.
-
Constructor Summary
Constructors Constructor Description ClusteredProperties()Constructs anClusteredProperties(required for serialization).ClusteredProperties(String sTaskId, com.tangosol.net.CacheService service)Constructs aClusteredPropertiesgiven the task ID and cache service.ClusteredProperties(String sTaskId, com.tangosol.net.CacheService service, TaskProperties properties)Constructs aClusteredPropertiesgiven the task ID, cache service, and initial properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends Serializable>
Vget(String sKey)Get the property of a given key.protected com.tangosol.net.CacheServicegetCacheService()Return theCacheServiceused by this executor service.<V extends Serializable>
Vput(String sKey, V value)Put a property with the given name and value.voidreadExternal(com.tangosol.io.pof.PofReader in)voidreadExternal(DataInput in)voidwriteExternal(com.tangosol.io.pof.PofWriter out)voidwriteExternal(DataOutput out)
-
-
-
Constructor Detail
-
ClusteredProperties
public ClusteredProperties()
Constructs anClusteredProperties(required for serialization).
-
ClusteredProperties
public ClusteredProperties(String sTaskId, com.tangosol.net.CacheService service)
Constructs aClusteredPropertiesgiven the task ID and cache service.
-
ClusteredProperties
public ClusteredProperties(String sTaskId, com.tangosol.net.CacheService service, TaskProperties properties)
Constructs aClusteredPropertiesgiven the task ID, cache service, and initial properties.
-
-
Method Detail
-
get
public <V extends Serializable> V get(String sKey)
Description copied from interface:Task.PropertiesGet the property of a given key.- Specified by:
getin interfaceTask.Properties- Type Parameters:
V- the value type of the property- Parameters:
sKey- the key of the property- Returns:
- the value of the property
-
put
public <V extends Serializable> V put(String sKey, V value)
Description copied from interface:Task.PropertiesPut a property with the given name and value.- Specified by:
putin interfaceTask.Properties- Type Parameters:
V- the value type of the property- Parameters:
sKey- the key of the propertyvalue- the value of the property- Returns:
- the previous value of the property or null if it's a new property
-
readExternal
public void readExternal(DataInput in) throws IOException
- Specified by:
readExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Specified by:
writeExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
getCacheService
protected com.tangosol.net.CacheService getCacheService()
Return theCacheServiceused by this executor service.- Returns:
- the
CacheServiceused by this executor service
-
-