Class UUIDMarshaller

  • All Implemented Interfaces:
    org.infinispan.protostream.BaseMarshaller<UUID>, org.infinispan.protostream.MessageMarshaller<UUID>

    public class UUIDMarshaller
    extends Object
    implements org.infinispan.protostream.MessageMarshaller<UUID>
    • Constructor Detail

      • UUIDMarshaller

        public UUIDMarshaller​(String typeName)
        Parameters:
        typeName - so that marshaller can be used in multiple contexts
    • Method Detail

      • readFrom

        public UUID readFrom​(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader)
                      throws IOException
        Specified by:
        readFrom in interface org.infinispan.protostream.MessageMarshaller<UUID>
        Throws:
        IOException
      • writeTo

        public void writeTo​(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer,
                            UUID uuid)
                     throws IOException
        Specified by:
        writeTo in interface org.infinispan.protostream.MessageMarshaller<UUID>
        Throws:
        IOException
      • getJavaClass

        public Class<? extends UUID> getJavaClass()
        Specified by:
        getJavaClass in interface org.infinispan.protostream.BaseMarshaller<UUID>
      • getTypeName

        public String getTypeName()
        Specified by:
        getTypeName in interface org.infinispan.protostream.BaseMarshaller<UUID>