public final class SossObjectDescriptor extends Object implements Serializable
NamedCache.putAll(java.util.Map) operation.| Constructor and Description |
|---|
SossObjectDescriptor(Serializable object,
CreatePolicy policy,
ObjectMetadata metadata)
Creates a
SossObjDescriptor class with the metadata and CreatePolicy information needed to
insert an object via a bulk put NamedCache.putAll(java.util.Map) operation. |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getInsertException()
Gets the exception encountered by a bulk add operation, or
null if the object was added to the NamedCache successfully. |
ObjectMetadata |
getMetadata()
Gets metadata related to the object being inserted.
|
Serializable |
getObject()
Gets the serializable object to insert into the NamedCache.
|
CreatePolicy |
getPolicy()
Policy information for the object being inserted.
|
void |
setMetadata(ObjectMetadata metadata) |
void |
setObject(Serializable object) |
void |
setPolicy(CreatePolicy policy) |
public SossObjectDescriptor(Serializable object, CreatePolicy policy, ObjectMetadata metadata)
SossObjDescriptor class with the metadata and CreatePolicy information needed to
insert an object via a bulk put NamedCache.putAll(java.util.Map) operation.object - Object to insert into the NamedCache.policy - Policy information for the object being inserted.metadata - Metadata related to the object being inserted.public Serializable getObject()
public void setObject(Serializable object)
object - Serializable valuegetObject()public ObjectMetadata getMetadata()
public void setMetadata(ObjectMetadata metadata)
metadata - Metadata valuegetMetadata()public CreatePolicy getPolicy()
public void setPolicy(CreatePolicy policy)
policy - CreatePolicy valuegetPolicy()public Exception getInsertException()
null if the object was added to the NamedCache successfully.
This property can be checked after a NamedCache.add() call to see if the corresponding object
was inserted.Copyright (C) 2007-2014 ScaleOut Software, Inc.