Java Code Examples for org.jboss.netty.channel.ChannelFuture.setFailure()

The following are Jave code examples for showing how to use setFailure() of the org.jboss.netty.channel.ChannelFuture class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: nfs-client-java   File: Connection.java   Source Code and License Vote up 4 votes
/**
 * Notify all the senders of all pending requests
 */
protected void notifyAllPendingSenders(String message) {
    for (ChannelFuture future : _futureMap.values()) {
        future.setFailure(new Error(message));
    }
}