public interface ChannelFactory extends NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
Channel |
createChannel(Session session) |
static Channel |
createChannel(Session session,
Collection<? extends ChannelFactory> factories,
String name) |
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
Channel createChannel(Session session) throws IOException
session
- The Session
through which the request is madeChannel
IOException
- If failed to create the requested instancestatic Channel createChannel(Session session, Collection<? extends ChannelFactory> factories, String name) throws IOException
session
- The Session
through which the request is madefactories
- The available factoriesname
- The required factory name to useChannel
- null
if no match foundIOException
- If failed to create the requested instanceCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.