/** * Create a {@link Channel} using the specified stack. Channel will use a * shared transport. * * @param stack_name * The name of the stack to be used. All stacks are defined in * the configuration with which the factory is configured (see * {@link #setMultiplexerConfig(Object)} for example. If * clients attempt to create a Channel for an undefined stack * name an exception will be thrown. * * @return an implementation of Channel configured with a shared transport. * * @throws IllegalArgumentException if <code>stack_name</code> is * <code>null</code> or {@link #getConfig(String)} returns <code>null</code> * when <code>stack_name</code> is used. * * @throws Exception */ @Override public Channel createChannel(String stack_name) throws Exception { return createChannelFromRegisteredStack(stack_name, null, false); }
public Channel createMultiplexerChannel(String stack_name, String id) throws Exception return createChannelFromRegisteredStack(stack_name, id, true);