接口 ExternalPayloadStorage


  • public interface ExternalPayloadStorage
    Interface used to externalize the storage of large JSON payloads in workflow and task input/output
    • 方法详细资料

      • upload

        void upload​(String path,
                    InputStream payload,
                    long payloadSize)
        Upload a json payload to the specified external storage location.
        参数:
        path - the location to which the object is to be uploaded
        payload - an InputStream containing the json payload which is to be uploaded
        payloadSize - the size of the json payload in bytes
      • download

        InputStream download​(String path)
        Download the json payload from the specified external storage location.
        参数:
        path - the location from where the object is to be downloaded
        返回:
        an InputStream of the json payload at the specified location