Run user's Java method on network message
<p>I can do this in C++ and Python, but I haven't quite figured it out on java.</p>

<p>My class has a 'MessageReceived' function that my network loop executes when a message comes in. I want the user to be able to write a method in their own class that they want to have run by MessageReceived, but I can't figure out how to pass and execute a method in Java. I can work around it by inheriting the class and overriding MessageReceived, but I'm hoping I can avoid forcing the user to do that.</p>
