Best approach to wait for closing the channel
Christian (VuuRWerK) Seifert
vuurwerk.christian at googlemail.com
Thu Jul 15 06:06:48 EDT 2010
Hi,
I search for a good and serious way to wait for closing the channel.
So I want to do something like to join the Listener-Thread to suspend
my main-thread. At the moment I do the following:
========= >8 =========
try {
while (_isRunning) {
Thread.sleep(5); // :(
}
} catch (InterruptedException ex) {
logger.error(ex, ex);
}
========= >8 =========
It works, of course, but I guess I come to the "bad-programmers"-hell
for that :(
Has someone any suggestions to prevent me from this place?
Thanks in advance!
- Christian
More information about the netty-users
mailing list