This plugin provides two REST Clients
- NIORestClient - which is a non-blocking REST client using NIO
- AsyncRestClient - which is asyncrhonous, but makes use of threads
The NIORestClient is available as Spring bean. AsyncRestClient can simply be instantiated via the new keyword.
Simply add to the classpath
Maven
<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-client</artifactId>
<version>0.62</version>
</dependency>
Gradle
compile 'com.aol.microservices:micro-client:0.62'