I'm new to netty and I want to use it for communication between my server-network. I got a Master and various Slaves in my Scenario. The Slaves need to query data from the Master. So that's why I want to create a method that sends something to the Server, and blocks until it receives an answer from the Server. After something is received it returns that. To make things more understandable here is a lil' bit of "pseudo-code":
public String getProperty(String queryString) {
sendString(queryString);
return methodThatBlocksUntilSomethingComesBackFromServer();
}
I heard I need to do something with Future<>(). but I am a little confused about that whole ChannelFuture-Thing ...
Thanks in Advance,
Scrayos