|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerializedEntry
A data object wrapper that wraps a data object and its serialized form.
A SerializedEntry implements the Serializable
interface and can therefore
be serialized using Java serialization methods. Since SerializedEntry's are associated
with a DataObjectContext
, serialization of the SerializedEntry will remove
the context from the object, and it will become detached. When detached, methods that require the context will
throw an IllegalStateException. Use the DataObjectContextAware.applyContext(DataObjectContext)
method to
reassociate the context with the SerializedEntry.
The data represented by this SerializedEntry is created using a DataSerializer
.
Method Summary | ||
---|---|---|
XsDataInputStream |
getInputStream()
Return a data input stream for the serialized form of the entry. |
|
|
getObject()
Return the Object form of the data object. |
|
String |
toString()
Return a user readable representation of the entry. |
Methods inherited from interface com.ibm.websphere.objectgrid.plugins.io.dataobject.DataObjectContextAware |
---|
applyContext, getContext |
Method Detail |
---|
String toString()
DataSerializer.UserReadable
to retrieve the string.
If DataObjectContextAware.getContext()
answers null, the result is undefined.
toString
in class Object
XsDataInputStream getInputStream()
Do not store or use the data stream beyond the confines of the method call that receives the SerializedEntry object. The data underlying the stream is owned by the WebSphere eXtreme Scale framework and my be pooled or reused as required.
<T> T getObject()
getObject
in interface DataObjectEntry
IllegalStateException
- if DataObjectContextAware.getContext()
answers null.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |