public class MarshalledValue extends Object implements Externalizable
MarshalledValueInterceptor handles transparent
wrapping/unwrapping of cached data.
MarshalledValueInterceptor,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Object |
instance |
protected byte[] |
raw |
| Constructor and Description |
|---|
MarshalledValue() |
MarshalledValue(Object instance) |
| Modifier and Type | Method and Description |
|---|---|
void |
compact(boolean preferSerializedRepresentation,
boolean force)
Compacts the references held by this class to a single reference.
|
void |
deserialize() |
boolean |
equals(Object o) |
Object |
get() |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
serialize() |
void |
setEqualityPreferenceForInstance(boolean equalityPreferenceForInstance) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
protected Object instance
protected byte[] raw
public MarshalledValue(Object instance) throws NotSerializableException
NotSerializableExceptionpublic MarshalledValue()
public void setEqualityPreferenceForInstance(boolean equalityPreferenceForInstance)
public void serialize()
public void deserialize()
public void compact(boolean preferSerializedRepresentation,
boolean force)
preferSerializedRepresentation - if true and both representations exist, the serialized representation is favoured. If false, the deserialized representation is preferred.force - ensures the preferred representation is maintained and the other released, even if this means serializing or deserializing.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic Object get() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.