Interface Record<T>


public interface Record<T>
Record defines an object that is known as the data or the payload of the record and it's associated metadata. A record can be message to be sent or simply an object that can be serialized and deserialized.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the metadata associated with this record, or null if no metadata is available.
     
  • Method Details

    • metadata

      Metadata metadata()
      Returns the metadata associated with this record, or null if no metadata is available. Callers must handle a null return value.
      Returns:
      the record metadata, or null
    • payload

      T payload()