Interface Marshallable<T>

  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends T>
    Returns the type of object handled by this marshallable instance.
    default OptionalInt
    size(ProtoStreamSizeOperation operation, T value)
    Computes the size of the specified object.

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.Readable

    readFrom

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.Writable

    writeTo
  • Method Details

    • size

      default OptionalInt size(ProtoStreamSizeOperation operation, T value)
      Computes the size of the specified object.
      Parameters:
      operation - the marshalling operation
      value - the value whose size is to be calculated
      Returns:
      an optional buffer size, only present if the buffer size could be computed
    • getJavaClass

      Class<? extends T> getJavaClass()
      Returns the type of object handled by this marshallable instance.
      Returns:
      the type of object handled by this marshallable instance.