MavenJava 8 library is available in Maven Central Repository:
Java 7 library is available in Maven Central Repository:
Create scheduler and executor for both Java 7 and Java 8. It will listen on the port 2775. If there is an SocketException, then it will retry internally with maximum no of tries 3 and initial delay 500 ms. Next retry delay with 500 * 2 ms, then 1000 * 2 ms. And also maximum delay will be 10000 ms.
Retry with Java 8 :
Retry with Java 7