Package com.gigaspaces.internal.io
Class MarshObject
java.lang.Object
com.gigaspaces.internal.io.MarshObject
- All Implemented Interfaces:
BinaryWrapper,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
CompressedMarshObject
MarshObject is similar to java.rmi.MarshalledObject. However, it does not support codebased
annotations. MarshObject is Externelizable and thus should be transferred faster through RMI or
LRMI. MarshObject also has a public getBytes() method.
- Since:
- 4.0
- Author:
- Igor Goldenberg
- See Also:
-
Constructor Details
-
MarshObject
public MarshObject() -
MarshObject
public MarshObject(byte[] bytes)
-
-
Method Details
-
getBytes
public byte[] getBytes()- Specified by:
getBytesin interfaceBinaryWrapper
-
equals
-
hashCode
public int hashCode() -
hashCode
public static int hashCode(byte[] bytes) -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-