snail is apache-licensed library ...which artificially slows down your JAX-RS 2.X endpoints.
<dependency> <groupId>com.airhacks</groupId> <artifactId>snail</artifactId> <version>[RECENT_VERSION]</version> </dependency>
- Set property with: snail-slowdown-in-ms=[DELAY IN MS].
- Override the system property with an equally-named header.
See also: github.com/AdamBien/snail
Java EE is too fast -- so we need snail :-)See you at Java EE Workshops at Munich Airport, Terminal 2 and particularly at Java EE 7 Microservices. Also checkout airhacks.io -- workshops on demand.
Web Apps, SPA, PWA with vanilla Java Script (ES 6+), CSS 3 and WebStandards only. As simple as possible, but not simpler. See you at: (Progressive) Web apps, Single Page Apps and WebStandards airhacks workshops at MUC airport, Winter Edition
airhacks.fm the podcast:
Stay in touch: airhacks.news.