public class ProtonClientProtocolManager extends ProtonProtocolManager implements ClientProtocolManager
ProtonProtocolManager to the ClientProtocolManager API.
This is currently very basic and only supports Connecting to a broker,
which will be useful in scenarios where the broker needs to connect to another broker through AMQP into another broker (like Interconnect) that will perform extra functionality.| Constructor and Description |
|---|
ProtonClientProtocolManager(ProtonProtocolManagerFactory factory,
ActiveMQServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannelHandlers(io.netty.channel.ChannelPipeline pipeline) |
boolean |
checkForFailover(String liveNodeID) |
boolean |
cleanupBeforeFailover(ActiveMQException cause) |
RemotingConnection |
connect(Connection transportConnection,
long callTimeout,
long callFailoverTimeout,
List<Interceptor> incomingInterceptors,
List<Interceptor> outgoingInterceptors,
TopologyResponseHandler topologyResponseHandler) |
SessionContext |
createSessionContext(String name,
String username,
String password,
boolean xa,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
int minLargeMessageSize,
int confirmationWindowSize) |
RemotingConnection |
getCurrentConnection() |
String |
getName() |
ClientSessionFactory |
getSessionFactory() |
boolean |
isAlive() |
Lock |
lockSessionCreation() |
void |
ping(long connectionTTL) |
void |
sendSubscribeTopology(boolean isServer) |
void |
setSessionFactory(ClientSessionFactory factory) |
void |
stop() |
boolean |
waitOnLatch(long milliseconds) |
acceptsNoHandshake, createConnectionEntry, getConverter, getFactory, getMaxFrameSize, getPubSubPrefix, getServer, handleBuffer, handshake, isProtocol, onNotification, removeHandler, setMaxFrameSize, setPubSubPrefix, updateInterceptors, websocketSubprotocolIdentifierspublic ProtonClientProtocolManager(ProtonProtocolManagerFactory factory, ActiveMQServer server)
public void stop()
stop in interface ClientProtocolManagerpublic RemotingConnection connect(Connection transportConnection, long callTimeout, long callFailoverTimeout, List<Interceptor> incomingInterceptors, List<Interceptor> outgoingInterceptors, TopologyResponseHandler topologyResponseHandler)
connect in interface ClientProtocolManagerpublic RemotingConnection getCurrentConnection()
getCurrentConnection in interface ClientProtocolManagerpublic Lock lockSessionCreation()
lockSessionCreation in interface ClientProtocolManagerpublic boolean waitOnLatch(long milliseconds)
throws InterruptedException
waitOnLatch in interface ClientProtocolManagerInterruptedExceptionpublic boolean isAlive()
isAlive in interface ClientProtocolManagerpublic void addChannelHandlers(io.netty.channel.ChannelPipeline pipeline)
addChannelHandlers in interface ProtocolManager<Interceptor>addChannelHandlers in interface ClientProtocolManageraddChannelHandlers in class ProtonProtocolManagerpublic void sendSubscribeTopology(boolean isServer)
sendSubscribeTopology in interface ClientProtocolManagerpublic void ping(long connectionTTL)
ping in interface ClientProtocolManagerpublic SessionContext createSessionContext(String name, String username, String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int minLargeMessageSize, int confirmationWindowSize) throws ActiveMQException
createSessionContext in interface ClientProtocolManagerActiveMQExceptionpublic boolean cleanupBeforeFailover(ActiveMQException cause)
cleanupBeforeFailover in interface ClientProtocolManagerpublic boolean checkForFailover(String liveNodeID) throws ActiveMQException
checkForFailover in interface ClientProtocolManagerActiveMQExceptionpublic void setSessionFactory(ClientSessionFactory factory)
setSessionFactory in interface ClientProtocolManagerpublic ClientSessionFactory getSessionFactory()
getSessionFactory in interface ClientProtocolManagerpublic String getName()
getName in interface ClientProtocolManagerCopyright © 2017 The Apache Software Foundation. All Rights Reserved.