public class DebugChannelFactory extends java.lang.Object implements ChannelFactory
Modifier and Type | Class and Description |
---|---|
private static class |
DebugChannelFactory.DebugChannel
wrapper class for a connection.
|
Modifier and Type | Field and Description |
---|---|
private int |
counter
a counter to allow the identification of the created channels
|
private ChannelFactory |
factory
the actual factory
|
Constructor and Description |
---|
DebugChannelFactory(ChannelFactory theFactory)
constructor
|
Modifier and Type | Method and Description |
---|---|
RegistryChannel |
createChannel()
create a new channel.
|
private ChannelFactory factory
private int counter
public DebugChannelFactory(ChannelFactory theFactory)
theFactory
- the actual factorypublic RegistryChannel createChannel() throws java.io.IOException
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 closedcreateChannel
in interface ChannelFactory
null
if no more
channels are availablejava.io.IOException
- if the channel could not be createdCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH