Interface ClientProtocolManager
public interface ClientProtocolManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChannelHandlers
(io.netty.channel.ChannelPipeline pipeline) boolean
checkForFailover
(String nodeID) boolean
connect
(Connection transportConnection, long callTimeout, long callFailoverTimeout, List<Interceptor> incomingInterceptors, List<Interceptor> outgoingInterceptors, TopologyResponseHandler topologyResponseHandler) createSessionContext
(String name, String username, String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int minLargeMessageSize, int confirmationWindowSize, String clientID) getName()
boolean
isAlive()
void
ping
(long connectionTTL) void
sendSubscribeTopology
(boolean isServer) setExecutor
(Executor executor) void
setSessionFactory
(ClientSessionFactory factory) void
stop()
This is to be called when a connection failed and we want to interrupt any communication.boolean
waitOnLatch
(long milliseconds)
-
Method Details
-
setExecutor
-
connect
RemotingConnection connect(Connection transportConnection, long callTimeout, long callFailoverTimeout, List<Interceptor> incomingInterceptors, List<Interceptor> outgoingInterceptors, TopologyResponseHandler topologyResponseHandler) -
getCurrentConnection
RemotingConnection getCurrentConnection() -
lockSessionCreation
Lock lockSessionCreation() -
waitOnLatch
- Throws:
InterruptedException
-
stop
void stop()This is to be called when a connection failed and we want to interrupt any communication. This used to be called exitLoop at some point o the code.. with a method named causeExit from ClientSessionFactoryImpl -
isAlive
boolean isAlive() -
addChannelHandlers
void addChannelHandlers(io.netty.channel.ChannelPipeline pipeline) -
sendSubscribeTopology
void sendSubscribeTopology(boolean isServer) -
ping
void ping(long connectionTTL) -
createSessionContext
SessionContext createSessionContext(String name, String username, String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int minLargeMessageSize, int confirmationWindowSize, String clientID) throws ActiveMQException - Throws:
ActiveMQException
-
cleanupBeforeFailover
-
checkForFailover
- Throws:
ActiveMQException
-
setSessionFactory
-
getSessionFactory
ClientSessionFactory getSessionFactory() -
getName
String getName()
-