Class PeriodMarshaller

java.lang.Object
org.wildfly.clustering.marshalling.protostream.time.PeriodMarshaller
All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<Period>, org.infinispan.protostream.ProtobufTagMarshaller<Period>, Marshallable<Period>, ProtoStreamMarshaller<Period>, Readable<Period>, Writable<Period>

public class PeriodMarshaller extends Object implements ProtoStreamMarshaller<Period>
Marshaller for Period instances, using the following strategy:
  1. Marshal Period.ZERO as zero bytes
  2. Marshal number of years of period as signed integer
  3. Marshal number of months of period as signed integer
  4. Marshal number of days of period as signed integer
Author:
Paul Ferraro