VirtualServerChannelSelectorFactorypublic class VirtualServerChannelSelectorFactory extends Object
Methods Summary |
---|
public static VirtualServerChannelSelector | createBlocking(java.net.InetSocketAddress bind_address, int so_rcvbuf_size, VirtualServerChannelSelector.SelectListener listener)
return( new VirtualBlockingServerChannelSelector( bind_address, so_rcvbuf_size, listener ));
| public static VirtualServerChannelSelector | createNonBlocking(java.net.InetSocketAddress bind_address, int so_rcvbuf_size, VirtualServerChannelSelector.SelectListener listener)
return( new VirtualNonBlockingServerChannelSelector( bind_address, so_rcvbuf_size, listener ));
| public static VirtualServerChannelSelector | createTest(java.net.InetSocketAddress bind_address, int so_rcvbuf_size, VirtualServerChannelSelector.SelectListener listener)
// test param to allow multiple ports to be created
int range = COConfigurationManager.getIntParameter( "TCP.Listen.Port.Range", -1 );
if ( range == -1 ){
return( createBlocking( bind_address, so_rcvbuf_size, listener ));
}else{
return( new VirtualNonBlockingServerChannelSelector(
bind_address.getAddress(),
bind_address.getPort(),
range,
so_rcvbuf_size, listener ));
}
|
|