How to imitate slow connection with servlet -


I configured the servlet for responses with some delay, without using sleep (), GET or POST. Can I?

Use Object.wait () :

< Pre> synchronize (this) {this.wait (1000); }

There are only two ways to wait in java. Everything else is finally sleep () or waiting () .


Comments