public abstract class TransportFactory extends Object
Constructor and Description |
---|
TransportFactory() |
Modifier and Type | Method and Description |
---|---|
static TransportServer |
bind(URI location) |
Transport |
compositeConfigure(Transport transport,
WireFormat format,
Map options)
Similar to configure(...) but this avoid adding in the MutexTransport and
ResponseCorrelator transport layers so that the resulting transport can
more efficiently be used as part of a composite transport.
|
static Transport |
compositeConnect(URI location)
Creates a slimmed down transport that is more efficient so that it can be
used by composite transports like reliable and HA.
|
static Transport |
compositeConnect(URI location,
Executor ex)
Creates a slimmed down transport that is more efficient so that it can be
used by composite transports like reliable and HA.
|
Transport |
configure(Transport transport,
WireFormat wf,
Map options)
Fully configures and adds all need transport filters so that the
transport can be used by the JMS client.
|
static Transport |
connect(URI location)
Creates a normal transport.
|
static Transport |
connect(URI location,
Executor ex)
Creates a normal transport.
|
protected Transport |
createTransport(URI location,
WireFormat wf)
Factory method to create a new transport
|
protected WireFormat |
createWireFormat(Map<String,String> options) |
protected WireFormatFactory |
createWireFormatFactory(Map<String,String> options) |
abstract TransportServer |
doBind(URI location) |
Transport |
doCompositeConnect(URI location) |
Transport |
doCompositeConnect(URI location,
Executor ex) |
Transport |
doConnect(URI location) |
Transport |
doConnect(URI location,
Executor ex) |
static TransportFactory |
findTransportFactory(URI location) |
protected String |
getDefaultWireFormatType() |
protected String |
getOption(Map options,
String key,
String def) |
static void |
registerTransportFactory(String scheme,
TransportFactory tf)
Allow registration of a transport factory without wiring via META-INF classes
|
Transport |
serverConfigure(Transport transport,
WireFormat format,
HashMap options)
Fully configures and adds all need transport filters so that the
transport can be used by the ActiveMQ message broker.
|
public TransportFactory()
public abstract TransportServer doBind(URI location) throws IOException
IOException
public Transport doCompositeConnect(URI location, Executor ex) throws Exception
Exception
public static Transport connect(URI location) throws Exception
location
- Exception
public static Transport connect(URI location, Executor ex) throws Exception
location
- ex
- Exception
public static Transport compositeConnect(URI location) throws Exception
location
- Exception
public static Transport compositeConnect(URI location, Executor ex) throws Exception
location
- ex
- Exception
public static TransportServer bind(URI location) throws IOException
IOException
public Transport doCompositeConnect(URI location) throws Exception
Exception
public static void registerTransportFactory(String scheme, TransportFactory tf)
scheme
- tf
- protected Transport createTransport(URI location, WireFormat wf) throws MalformedURLException, UnknownHostException, IOException
public static TransportFactory findTransportFactory(URI location) throws IOException
location
- IOException
protected WireFormat createWireFormat(Map<String,String> options) throws IOException
IOException
protected WireFormatFactory createWireFormatFactory(Map<String,String> options) throws IOException
IOException
protected String getDefaultWireFormatType()
public Transport configure(Transport transport, WireFormat wf, Map options) throws Exception
transport
- wf
- options
- Exception
public Transport serverConfigure(Transport transport, WireFormat format, HashMap options) throws Exception
transport
- format
- options
- Exception
public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
transport
- format
- options
- Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.