com.ning.http.util
Class CleanupChannelGroup

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<org.jboss.netty.channel.Channel>
          extended by org.jboss.netty.channel.group.DefaultChannelGroup
              extended by com.ning.http.util.CleanupChannelGroup
All Implemented Interfaces:
Comparable<org.jboss.netty.channel.group.ChannelGroup>, Iterable<org.jboss.netty.channel.Channel>, Collection<org.jboss.netty.channel.Channel>, Set<org.jboss.netty.channel.Channel>, org.jboss.netty.channel.group.ChannelGroup

public class CleanupChannelGroup
extends org.jboss.netty.channel.group.DefaultChannelGroup

Extension of DefaultChannelGroup that's used mainly as a cleanup container, where close() is only supposed to be called once.

Author:
Bruno de Carvalho

Constructor Summary
CleanupChannelGroup()
           
CleanupChannelGroup(String name)
           
 
Method Summary
 boolean add(org.jboss.netty.channel.Channel channel)
           
 org.jboss.netty.channel.group.ChannelGroupFuture close()
           
 
Methods inherited from class org.jboss.netty.channel.group.DefaultChannelGroup
clear, compareTo, contains, disconnect, equals, find, getName, hashCode, isEmpty, iterator, remove, setInterestOps, setReadable, size, toArray, toArray, toString, unbind, write, write
 
Methods inherited from class java.util.AbstractSet
removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, removeAll, retainAll
 

Constructor Detail

CleanupChannelGroup

public CleanupChannelGroup()

CleanupChannelGroup

public CleanupChannelGroup(String name)
Method Detail

close

public org.jboss.netty.channel.group.ChannelGroupFuture close()
Specified by:
close in interface org.jboss.netty.channel.group.ChannelGroup
Overrides:
close in class org.jboss.netty.channel.group.DefaultChannelGroup

add

public boolean add(org.jboss.netty.channel.Channel channel)
Specified by:
add in interface Collection<org.jboss.netty.channel.Channel>
Specified by:
add in interface Set<org.jboss.netty.channel.Channel>
Overrides:
add in class org.jboss.netty.channel.group.DefaultChannelGroup


Copyright © 2011. All Rights Reserved.