de.knipp.rritoolkit
Interface ChannelFactory

All Known Implementing Classes:
DebugChannelFactory, TcpChannelFactory

public interface ChannelFactory

interface to a class that can produce new channels to the registry. An implementation must be thread-safe.

Version:
$Revision: 14936 $
Author:
Klaus Malorny

Method Summary
 RegistryChannel createChannel()
          create a new channel.
 

Method Detail

createChannel

RegistryChannel createChannel()
                              throws java.io.IOException
create a new channel. If a implementation or configuration specific limit of number of channels exists and this limit has been reached, null is returned. If a channel could not be created for a different reason, an IOException is thrown. Channels that are no longer used by the caller should be closed

Returns:
the channel or null if no more channels are available
Throws:
java.io.IOException - if the channel could not be created


Copyright © 2005-2011 Knipp Medien und Kommunikation GmbH