org.jboss.ha.framework.interfaces
Interface CachableMarshalledValue

All Superinterfaces:
org.jboss.util.stream.IMarshalledValue
All Known Implementing Classes:
SimpleCachableMarshalledValue

public interface CachableMarshalledValue
extends org.jboss.util.stream.IMarshalledValue

IMarshalledValue subinterface intended for implementations that intend to hold onto a ref to deserialized form of the object they wrap.

Author:
Brian Stansberry

Method Summary
 byte[] toByteArray()
          Serialize any deserialized wrapped object to a byte[] and release any references to the deserialized form.
 
Methods inherited from interface org.jboss.util.stream.IMarshalledValue
get
 

Method Detail

toByteArray

byte[] toByteArray()
                   throws IOException
Serialize any deserialized wrapped object to a byte[] and release any references to the deserialized form.

Returns:
the serialized form of the wrapped object, or null if there was no wrapped object.
Throws:
IOException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.