public class MultipleTransferSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.enterprisedt.net.ftp.async.internal.SecureConnectionContext |
context |
Modifier | Constructor and Description |
---|---|
protected |
MultipleTransferSettings(com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getCountBeforeSleep()
Get the number of transfers set before sleeping
|
int |
getSleepTime()
Get the number of seconds spent asleep
|
boolean |
isSleepEnabled()
Is sleeping enabled?
|
void |
setCountBeforeSleep(int countBeforeSleep)
Set the number of transfers required before sleeping
|
void |
setSleepEnabled(boolean sleepEnabled)
Set sleeping enabled to be on or off
|
void |
setSleepTime(int sleepTime)
Set the time spent asleep
|
protected com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context
protected MultipleTransferSettings(com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context)
context
- context that settings are kept inpublic int getCountBeforeSleep()
public void setCountBeforeSleep(int countBeforeSleep)
countBeforeSleep
- maximum transfer countpublic boolean isSleepEnabled()
public void setSleepEnabled(boolean sleepEnabled)
sleepEnabled
- if true, sleeping is enabled, otherwise it is switched offpublic int getSleepTime()
public void setSleepTime(int sleepTime)
sleepTime
- sleep time in secondsCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.