public interface ReadCommand<A extends FileAttributes>
| Modifier and Type | Method and Description |
|---|---|
default org.mule.runtime.extension.api.runtime.operation.Result<InputStream,A> |
read(FileConnectorConfig config,
A attributes,
boolean lock,
Long timeBetweenSizeCheck)
Reads files under the considerations of
FileSystem.read(FileConnectorConfig, String, boolean) This method can be used
instead of read(FileConnectorConfig, String, boolean, Long) to avoid extra processing to get the file
attributes again if that information is already collected (this is important if the attributes are gathered from a remote
server). |
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 existdefault org.mule.runtime.extension.api.runtime.operation.Result<InputStream,A> read(FileConnectorConfig config, A attributes, boolean lock, Long timeBetweenSizeCheck)
FileSystem.read(FileConnectorConfig, String, boolean) This method can be used
instead of read(FileConnectorConfig, String, boolean, Long) to avoid extra processing to get the file
attributes again if that information is already collected (this is important if the attributes are gathered from a remote
server).config - the config that is parameterizing this operationattributes - the attributes 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.