I am using Babbler to write an XMPP soft client for doing load testing.
In the API documentation Babbler documentation, it mentions adding listeners to intercept incoming messages. However, the example code is written in lambda form.
// Listen for messages
xmppClient.addInboundMessageListener(e -> {
Message message = e.getMessage();
// Handle inbound message.
});
I need help converting this to Java 1.7 function since our load generation tool (nGrinder) does not support lambda syntax.