Class DefaultProtoStreamSizeOperation
java.lang.Object
org.wildfly.clustering.marshalling.protostream.AbstractProtoStreamOperation
org.wildfly.clustering.marshalling.protostream.DefaultProtoStreamSizeOperation
- All Implemented Interfaces:
org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, ProtoStreamOperation, ProtoStreamSizeOperation
public class DefaultProtoStreamSizeOperation
extends AbstractProtoStreamOperation
implements ProtoStreamSizeOperation
A default ProtoStream size operation.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface ProtoStreamOperation
ProtoStreamOperation.Context -
Method Summary
Modifier and TypeMethodDescription<T> OptionalIntcomputeSize(Writable<T> operation, T value) Computes the size of the specified object using the specified operation.Returns the context of this operationMethods 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 ProtoStreamOperation
findMarshaller, getSerializationContextMethods inherited from interface ProtoStreamSizeOperation
tagSize, varIntSize
-
Method Details
-
getContext
Description copied from interface:ProtoStreamOperationReturns the context of this operation- Specified by:
getContextin interfaceProtoStreamOperation- Returns:
- the operation context
-
computeSize
Description copied from interface:ProtoStreamSizeOperationComputes the size of the specified object using the specified operation.- Specified by:
computeSizein interfaceProtoStreamSizeOperation- Type Parameters:
T- the source object type- Parameters:
operation- a write operation used to compute the sizevalue- the object to be sized- Returns:
- the computed size
-