public class MarshalledValue extends Object implements Externalizable
MarshalledValueInterceptor
handles transparent
wrapping/unwrapping of cached data.
MarshalledValueInterceptor
,
Serialized FormModifier 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
NotSerializableException
public 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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public Object get() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.