接口 ExternalPayloadStorage
-
public interface ExternalPayloadStorageInterface used to externalize the storage of large JSON payloads in workflow and task input/output
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classExternalPayloadStorage.Operationstatic classExternalPayloadStorage.PayloadType
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 InputStreamdownload(String path)Download the json payload from the specified external storage location.ExternalStorageLocationgetLocation(ExternalPayloadStorage.Operation operation, ExternalPayloadStorage.PayloadType payloadType, String path)Obtain a uri used to store/access a json payload in external storage.voidupload(String path, InputStream payload, long payloadSize)Upload a json payload to the specified external storage location.
-
-
-
方法详细资料
-
getLocation
ExternalStorageLocation getLocation(ExternalPayloadStorage.Operation operation, ExternalPayloadStorage.PayloadType payloadType, String path)
Obtain a uri used to store/access a json payload in external storage.- 参数:
operation- the type ofExternalPayloadStorage.Operationto be performed with the uripayloadType- theExternalPayloadStorage.PayloadTypethat is being accessed at the uripath- (optional) the relative path for which the external storage location object is to be populated. If path is not specified, it will be computed and populated.- 返回:
- a
ExternalStorageLocationobject which contains the uri and the path for the json payload
-
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 uploadedpayload- anInputStreamcontaining the json payload which is to be uploadedpayloadSize- 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
InputStreamof the json payload at the specified location
-
-