T
- the type of the returned m_oResultpublic class CoherenceEntryProcessorResult<T> extends Object implements javax.cache.processor.EntryProcessorResult<T>, ExternalizableLite, PortableObject
EntryProcessorResult
.Constructor and Description |
---|
CoherenceEntryProcessorResult()
Constructs a
CoherenceEntryProcessorResult (for serialization). |
CoherenceEntryProcessorResult(Exception exception)
Constructs a
CoherenceEntryProcessorResult for an Exception . |
CoherenceEntryProcessorResult(T oResult)
Constructs an
CoherenceEntryProcessorResult for a specific value. |
Modifier and Type | Method and Description |
---|---|
T |
get() |
void |
readExternal(DataInput in)
Restore the contents of this object by loading the object's state from the passed DataInput object.
|
void |
readExternal(PofReader reader)
Restore the contents of a user type instance by reading its state using the specified PofReader object.
|
void |
writeExternal(DataOutput out)
Save the contents of this object by storing the object's state into the passed DataOutput object.
|
void |
writeExternal(PofWriter writer)
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
|
public CoherenceEntryProcessorResult()
CoherenceEntryProcessorResult
(for serialization).public CoherenceEntryProcessorResult(Exception exception)
CoherenceEntryProcessorResult
for an Exception
.exception
- the Exception
public CoherenceEntryProcessorResult(T oResult)
CoherenceEntryProcessorResult
for a specific value.oResult
- the resultpublic T get() throws javax.cache.processor.EntryProcessorException
get
in interface javax.cache.processor.EntryProcessorResult<T>
javax.cache.processor.EntryProcessorException
public void readExternal(DataInput in) throws IOException
ExternalizableLite
readExternal
in interface ExternalizableLite
in
- the DataInput stream to read data from in order to restore the state of this objectIOException
- if an I/O exception occursNotActiveException
- if the object is not in its initial state, and therefore cannot be deserialized intopublic void writeExternal(DataOutput out) throws IOException
ExternalizableLite
writeExternal
in interface ExternalizableLite
out
- the DataOutput stream to write the state of this object toIOException
- if an I/O exception occurspublic void readExternal(PofReader reader) throws IOException
PortableObject
readExternal
in interface PortableObject
reader
- the PofReader from which to read the object's stateIOException
- if an I/O error occurspublic void writeExternal(PofWriter writer) throws IOException
PortableObject
writeExternal
in interface PortableObject
writer
- the PofWriter to which to write the object's stateIOException
- if an I/O error occurs