Class DefaultProtoStreamWriter
java.lang.Object
org.wildfly.clustering.marshalling.protostream.AbstractProtoStreamOperation
org.wildfly.clustering.marshalling.protostream.AbstractProtoStreamWriter
org.wildfly.clustering.marshalling.protostream.DefaultProtoStreamWriter
- All Implemented Interfaces:
AutoCloseable, Function<Object, OptionalInt>, org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext, org.infinispan.protostream.TagWriter, ProtoStreamOperation, ProtoStreamWriter
public class DefaultProtoStreamWriter
extends AbstractProtoStreamWriter
implements Function<Object, OptionalInt>
ProtoStreamWriter implementation that writes to a TagWriterImpl.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface ProtoStreamOperation
ProtoStreamOperation.Context -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProtoStreamWriter(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context) Creates a default ProtoStream writer. -
Method Summary
Modifier and TypeMethodDescriptionReturns the context of this operationvoidwriteObjectNoTag(Object value) Writes the specified object of a specific type.Methods inherited from class AbstractProtoStreamWriter
createFieldSetWriter, depth, flush, getWriter, subWriter, writeAnyNoTag, writeBool, writeBytes, writeBytes, writeBytes, writeDouble, writeEnum, writeFixed32, writeFixed64, writeFloat, writeInt32, writeInt64, writeRawBytes, writeSFixed32, writeSFixed64, writeSInt32, writeSInt64, writeString, writeTag, writeUInt32, writeUInt64, writeVarint32, writeVarint64Methods inherited from class AbstractProtoStreamOperation
getParam, getSerializationContext, setParamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.protostream.ProtobufTagMarshaller.OperationContext
getParam, getSerializationContext, setParamMethods inherited from interface ProtoStreamOperation
findMarshaller, getSerializationContextMethods inherited from interface ProtoStreamWriter
writeAny, writeEnum, writeObject, writeObject, writeTagMethods inherited from interface org.infinispan.protostream.TagWriter
close
-
Constructor Details
-
DefaultProtoStreamWriter
public DefaultProtoStreamWriter(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context) Creates a default ProtoStream writer.- Parameters:
context- the write context
-
-
Method Details
-
getContext
Description copied from interface:ProtoStreamOperationReturns the context of this operation- Specified by:
getContextin interfaceProtoStreamOperation- Overrides:
getContextin classAbstractProtoStreamWriter- Returns:
- the operation context
-
writeObjectNoTag
Description copied from interface:ProtoStreamWriterWrites the specified object of a specific type. Must be preceded by {TagWriter.writeTag(int, org.infinispan.protostream.descriptors.WireType).- Specified by:
writeObjectNoTagin interfaceProtoStreamWriter- Parameters:
value- a value to be written- Throws:
IOException- if no marshaller is associated with the type of the specified object, or if the marshaller fails to write the specified object
-
apply
- Specified by:
applyin interfaceFunction<Object, OptionalInt>
-