class to simulate slow connections by slowing down the system
Constructor and description |
---|
SlowLinkSimulator
(int delayBytes, int delayTime) construct |
SlowLinkSimulator
(SlowLinkSimulator that) construct by copying delay bytes and time, but not current count of bytes |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getCurrentBytes() get the current byte count |
|
int |
getTotalBytes() how many bytes have gone past? |
|
void |
pump(int bytes) log #of bytes pumped. |
|
void |
setCurrentBytes(int currentBytes) set the current byte count |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
construct
delayBytes
- bytes per delay; set to 0 for no delaydelayTime
- delay time per delay in millisecondsconstruct by copying delay bytes and time, but not current count of bytes
that
- source of dataget the current byte count
how many bytes have gone past?
log #of bytes pumped. Will pause when necessary. This method is not synchronized
set the current byte count
ReadyAPI functional (soapui) SDK 3.20.1