public class FileListener extends Object implements IConfigurable, AutoCloseable
Constructor and Description |
---|
FileListener() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure() |
String |
getFilename2() |
String |
getMessage()
Read the message from the specified file.
|
long |
getTimeOut()
Get the time out in milliseconds waiting for creation of the file.
|
void |
setDirectory(String directory)
Set the directory to read the file from.
|
void |
setFilename(String filename)
Set the filename of the file to read the message from.
|
void |
setFilename2(String filename2)
When used, filename and filename2 are binary compared (returns 'true' or
'false' instead of the file content).
|
void |
setInterval(long interval)
Set the interval time in milliseconds between checks for creation of the
file.
|
void |
setTimeOut(long timeOut)
Set the time out in milliseconds waiting for creation of the file.
|
void |
setWaitBeforeRead(long waitBeforeRead)
Set the time to wait in milliseconds before starting to read the file.
|
void |
setWildcard(String wildcard)
Set the wildcard to find the file to read the message from.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
public void configure() throws ConfigurationException
configure
in interface IConfigurable
ConfigurationException
public void close() throws ConfigurationException
close
in interface AutoCloseable
ConfigurationException
public String getMessage() throws TimeoutException, ListenerException
TimeoutException
ListenerException
public void setFilename(String filename)
public void setFilename2(String filename2)
public String getFilename2()
public void setDirectory(String directory)
public void setWildcard(String wildcard)
wildcard
- to search for files in a directorypublic void setWaitBeforeRead(long waitBeforeRead)
public void setTimeOut(long timeOut)
public long getTimeOut()
public void setInterval(long interval)
Copyright © 2023 Frank!Framework. All rights reserved.