Class BinaryExternalizer<T,X,Y>
java.lang.Object
org.wildfly.clustering.marshalling.spi.BinaryExternalizer<T,X,Y>
- All Implemented Interfaces:
Externalizer<T>
Generic
Externalizer for an object composed of 2 externalizable components.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryExternalizer(Class<T> targetClass, Externalizer<X> externalizer1, Externalizer<Y> externalizer2, Function<T, X> accessor1, Function<T, Y> accessor2, BiFunction<X, Y, T> factory) -
Method Summary
Modifier and TypeMethodDescriptionreadObject(ObjectInput input) voidwriteObject(ObjectOutput output, T object)
-
Constructor Details
-
BinaryExternalizer
-
-
Method Details
-
writeObject
- Specified by:
writeObjectin interfaceExternalizer<T>- Throws:
IOException
-
readObject
- Specified by:
readObjectin interfaceExternalizer<T>- Throws:
IOExceptionClassNotFoundException
-
getTargetClass
- Specified by:
getTargetClassin interfaceExternalizer<T>
-
size
- Specified by:
sizein interfaceExternalizer<T>
-