Interface ClientProtocolManager
public interface ClientProtocolManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChannelHandlers(io.netty.channel.ChannelPipeline pipeline) Sending methodsbooleancheckForFailover(String nodeID) booleanconnect(Connection transportConnection, long callTimeout, long callFailoverTimeout, List<Interceptor> incomingInterceptors, List<Interceptor> outgoingInterceptors, TopologyResponseHandler topologyResponseHandler) Life Cycle Methods:createSessionContext(String name, String username, String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int minLargeMessageSize, int confirmationWindowSize, String clientID) getName()booleanisAlive()voidping(long connectionTTL) voidsendSubscribeTopology(boolean isServer) setExecutor(Executor executor) voidsetSessionFactory(ClientSessionFactory factory) voidstop()This is to be called when a connection failed and we want to interrupt any communication.booleanwaitOnLatch(long milliseconds)
-
Method Details
-
setExecutor
-
connect
RemotingConnection connect(Connection transportConnection, long callTimeout, long callFailoverTimeout, List<Interceptor> incomingInterceptors, List<Interceptor> outgoingInterceptors, TopologyResponseHandler topologyResponseHandler) Life Cycle Methods: -
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) Sending methods -
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()
-