Interface Serializer<PayloadType>

    • Field Detail

      • DEFAULT_PRIORITY

        static final int DEFAULT_PRIORITY
        default serializer priority
        See Also:
        Constant Field Values
    • Method Detail

      • handles

        boolean handles​(Object payload)
        if the serializer can handle given payload
        Parameters:
        payload - the payload
        Returns:
        true iff the seralizer can handle the payload
      • serialize

        io.vertx.core.buffer.Buffer serialize​(PayloadType payload)
        serialize the payload
        Parameters:
        payload - object to serialize
        Returns:
        a buffer with serialized payload
      • getPriority

        default int getPriority()
        From serializers that can handle a specific payload, the one with the higher priority is used.
        Returns:
        the priority of the serializer