Enum Class DurationMarshaller

java.lang.Object
java.lang.Enum<DurationMarshaller>
org.wildfly.clustering.marshalling.protostream.time.DurationMarshaller
All Implemented Interfaces:
Serializable, Comparable<DurationMarshaller>, Constable, FieldReadable<Duration>, FieldSetMarshaller<Duration,Duration>, FieldSetMarshaller.Simple<Duration>, Writable<Duration>

public enum DurationMarshaller extends Enum<DurationMarshaller> implements FieldSetMarshaller.Simple<Duration>
Marshaller for Duration instances, using the following strategy:
  1. Marshal Duration.ZERO as zero bytes
  2. Marshal number of seconds of duration as unsigned long
  3. Marshal sub-second value of duration as unsigned integer, using millisecond precision, if possible
Author:
Paul Ferraro