Class ResourcePayload


  • public class ResourcePayload
    extends Object
    Data carrier used by the Consumer to send back streaming payload result data to a caller
    • Constructor Detail

      • ResourcePayload

        public ResourcePayload​(String logicalId,
                               Instant lastUpdated,
                               long resourceId,
                               InputStream decompressedPayload)
        Parameters:
        logicalId - the non-null row identifier from the logical_resources table for this resource
        lastUpdated - the non-null lastUpdated time for this resource
        resourceId - the non-null row identifier from the x_resources table for this resource
        decompressedPayload - a non-null InputStream with the contents of a given resource in JSON format
    • Method Detail

      • getLogicalId

        public String getLogicalId()
        Getter for the logicalId of this resource
        Returns:
      • getResourceId

        public long getResourceId()
        Getter for the resourceId
        Returns:
      • getLastUpdated

        public Instant getLastUpdated()
        Returns:
        the lastUpdated