public class SlowLinkSimulator extends java.lang.Object
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 |
|---|---|---|
|
public int |
getCurrentBytes()get the current byte count |
|
public int |
getTotalBytes()how many bytes have gone past? |
|
public void |
pump(int bytes)log #of bytes pumped. |
|
public void |
setCurrentBytes(int currentBytes)set the current byte count |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
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 4.1.0