Package org.apache.activemq.network
Class NetworkBridgeFactory
- java.lang.Object
-
- org.apache.activemq.network.NetworkBridgeFactory
-
- All Implemented Interfaces:
BridgeFactory
public final class NetworkBridgeFactory extends Object implements BridgeFactory
Factory for network bridges
-
-
Field Summary
Fields Modifier and Type Field Description static BridgeFactory
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DemandForwardingBridge
createBridge(NetworkBridgeConfiguration configuration, Transport localTransport, Transport remoteTransport, NetworkBridgeListener listener)
Deprecated.static Transport
createLocalAsyncTransport(URI uri)
static Transport
createLocalTransport(NetworkBridgeConfiguration configuration, URI uri)
DemandForwardingBridge
createNetworkBridge(NetworkBridgeConfiguration configuration, Transport localTransport, Transport remoteTransport, NetworkBridgeListener listener)
Create a network bridge between two specified transports.
-
-
-
Field Detail
-
INSTANCE
public static final BridgeFactory INSTANCE
-
-
Method Detail
-
createNetworkBridge
public DemandForwardingBridge createNetworkBridge(NetworkBridgeConfiguration configuration, Transport localTransport, Transport remoteTransport, NetworkBridgeListener listener)
Description copied from interface:BridgeFactory
Create a network bridge between two specified transports.- Specified by:
createNetworkBridge
in interfaceBridgeFactory
- Parameters:
configuration
- Bridge configuration.localTransport
- Local side of bridge.remoteTransport
- Remote side of bridge.listener
- Bridge listener.- Returns:
- the NetworkBridge
-
createBridge
@Deprecated public static DemandForwardingBridge createBridge(NetworkBridgeConfiguration configuration, Transport localTransport, Transport remoteTransport, NetworkBridgeListener listener)
Deprecated.Create a network bridge- Parameters:
configuration
-localTransport
-remoteTransport
-listener
-- Returns:
- the NetworkBridge
-
createLocalTransport
public static Transport createLocalTransport(NetworkBridgeConfiguration configuration, URI uri) throws Exception
- Throws:
Exception
-
-