public interface ReadCommand<A extends FileAttributes>
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,A> |
read(FileConnectorConfig config,
String filePath,
boolean lock)
Deprecated.
|
default org.mule.runtime.extension.api.runtime.operation.Result<InputStream,A> |
read(FileConnectorConfig config,
String filePath,
boolean lock,
Long timeBetweenSizeCheck)
Reads files under the considerations of
FileSystem.read(FileConnectorConfig, String, boolean) |
@Deprecated org.mule.runtime.extension.api.runtime.operation.Result<InputStream,A> read(FileConnectorConfig config, String filePath, boolean lock)
FileSystem.read(FileConnectorConfig, String, boolean)config - the config that is parameterizing this operationfilePath - the path of the file you want to readlock - whether or not to lock the fileResult with an InputStream with the file's content as payload and a
FileAttributes object as Message.getAttributes()IllegalArgumentException - if the file at the given path doesn't existdefault org.mule.runtime.extension.api.runtime.operation.Result<InputStream,A> read(FileConnectorConfig config, String filePath, boolean lock, Long timeBetweenSizeCheck)
FileSystem.read(FileConnectorConfig, String, boolean)config - the config that is parameterizing this operationfilePath - the path of the file you want to readlock - whether or not to lock the filetimeBetweenSizeCheck - wait time between size checks to determine if a file is ready to be read in milliseconds.Result with an InputStream with the file's content as payload and a FileAttributes object
as Message.getAttributes()IllegalArgumentException - if the file at the given path doesn't existCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.