Class SimpleClassLoaderMarshaller
java.lang.Object
org.wildfly.clustering.marshalling.protostream.SimpleClassLoaderMarshaller
- All Implemented Interfaces:
ClassLoaderMarshaller,FieldReadable<ClassLoader>,FieldSetMarshaller<ClassLoader,,ClassLoader> FieldSetMarshaller.Simple<ClassLoader>,Writable<ClassLoader>
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.marshalling.protostream.FieldSetMarshaller
FieldSetMarshaller.Simple<T>, FieldSetMarshaller.Supplied<T,V extends Supplier<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a builder for use with#readField(ProtoStreamReader, Object).intReturns the number of fields in this field setreadFrom(ProtoStreamReader reader, int index, org.infinispan.protostream.descriptors.WireType type, ClassLoader loader) Reads a single field from the specified reader.voidwriteTo(ProtoStreamWriter writer, ClassLoader value) Writes the specified object to the specified writer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.marshalling.protostream.FieldReadable
nextIndexMethods inherited from interface org.wildfly.clustering.marshalling.protostream.FieldSetMarshaller.Simple
build
-
Constructor Details
-
SimpleClassLoaderMarshaller
-
-
Method Details
-
createInitialValue
Description copied from interface:FieldSetMarshallerReturns a builder for use with#readField(ProtoStreamReader, Object). May return a shared instance, if the builder type is immutable, or a new instance, if the builder is mutable.- Specified by:
createInitialValuein interfaceFieldSetMarshaller<ClassLoader,ClassLoader> - Returns:
- a builder.
-
getFields
public int getFields()Description copied from interface:FieldReadableReturns the number of fields in this field set- Specified by:
getFieldsin interfaceFieldReadable<ClassLoader>- Returns:
- a number of fields
-
readFrom
public ClassLoader readFrom(ProtoStreamReader reader, int index, org.infinispan.protostream.descriptors.WireType type, ClassLoader loader) throws IOException Description copied from interface:FieldReadableReads a single field from the specified reader.- Specified by:
readFromin interfaceFieldReadable<ClassLoader>- Parameters:
reader- a readerindex- the zero-based index, relative to this field set, of the field to be readtype- the wire type of the field to be readloader- the current value- Returns:
- the read value
- Throws:
IOException- if a field could not be read
-
writeTo
Description copied from interface:WritableWrites the specified object to the specified writer.- Specified by:
writeToin interfaceWritable<ClassLoader>- Parameters:
writer- a ProtoStream writervalue- the object to be written- Throws:
IOException- if the object could not be written
-