Interface CoreRemotingConnection
- All Superinterfaces:
BufferHandler,RemotingConnection
- All Known Implementing Classes:
RemotingConnectionImpl
Extension of RemotingConnection for the ActiveMQ Artemis core protocol
-
Method Summary
Modifier and TypeMethodDescriptionbooleanblockUntilWritable(long timeout) longgenerate a unique (within this connection) channel idlongReturns the current timeout for blocking calls.longReturns the current timeout for blocking calls).getChannel(long channelID, int confWindowSize) Returns the channel with the channel id specified.intThe client protocol used on the communication.Returns the default security principal.longReturns the next id to be chosen.Returns the transfer lock used when transferring connections.default booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleanvoidputChannel(long channelID, Channel channel) add the channel with the specified channel idbooleanremoveChannel(long channelID) remove the channel with the specified channel idvoidsetChannelVersion(int clientVersion) Sets the client protocol used on the communication.voidsyncIDGeneratorSequence(long id) Resets the id generator used to generate id's.Methods inherited from interface org.apache.activemq.artemis.spi.core.remoting.BufferHandler
bufferReceived, endOfBatchMethods inherited from interface org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
addCloseListener, addFailureListener, asyncFail, checkDataReceived, close, createTransportBuffer, destroy, disconnect, disconnect, disconnect, fail, fail, flush, getClientID, getCreationTime, getFailureListeners, getID, getProtocolName, getRemoteAddress, getSubject, getTransportConnection, getTransportLocalAddress, isClient, isDestroyed, isSameTarget, isSupportReconnect, isSupportsFlowControl, isWritable, killMessage, removeCloseListener, removeCloseListeners, removeFailureListener, removeFailureListeners, scheduledFlush, setClientID, setCloseListeners, setFailureListeners, setSubject
-
Method Details
-
getChannelVersion
int getChannelVersion()The client protocol used on the communication. This will determine if the client has support for certain packet types -
isVersionBeforeAddressChange
default boolean isVersionBeforeAddressChange() -
isVersionBeforeAsyncResponseChange
default boolean isVersionBeforeAsyncResponseChange() -
isVersionSupportConsumerPriority
default boolean isVersionSupportConsumerPriority() -
isVersionNewFQQN
default boolean isVersionNewFQQN() -
isVersionSupportClientID
default boolean isVersionSupportClientID() -
isVersionSupportRouting
default boolean isVersionSupportRouting() -
isVersionSupportCommitV2
default boolean isVersionSupportCommitV2() -
isVersionUsingLongOnPageReplication
default boolean isVersionUsingLongOnPageReplication() -
isBeforeTwoEighteen
default boolean isBeforeTwoEighteen() -
isBeforeProducerMetricsChanged
default boolean isBeforeProducerMetricsChanged() -
setChannelVersion
void setChannelVersion(int clientVersion) Sets the client protocol used on the communication. This will determine if the client has support for certain packet types -
getChannel
Returns the channel with the channel id specified.If it does not exist create it with the confirmation window size.
- Parameters:
channelID- the channel idconfWindowSize- the confirmation window size- Returns:
- the channel
-
putChannel
add the channel with the specified channel id- Parameters:
channelID- the channel idchannel- the channel
-
removeChannel
boolean removeChannel(long channelID) remove the channel with the specified channel id- Parameters:
channelID- the channel id- Returns:
- true if removed
-
generateChannelID
long generateChannelID()generate a unique (within this connection) channel id- Returns:
- the id
-
syncIDGeneratorSequence
void syncIDGeneratorSequence(long id) Resets the id generator used to generate id's.- Parameters:
id- the first id to set it to
-
getIDGeneratorSequence
long getIDGeneratorSequence()Returns the next id to be chosen.- Returns:
- the next id to be chosen
-
getBlockingCallTimeout
long getBlockingCallTimeout()Returns the current timeout for blocking calls).- Returns:
- the current timeout for blocking calls)
-
getBlockingCallFailoverTimeout
long getBlockingCallFailoverTimeout()Returns the current timeout for blocking calls.- Returns:
- the current timeout for blocking calls
-
getTransferLock
Object getTransferLock()Returns the transfer lock used when transferring connections.- Returns:
- the transfer lock used when transferring connections
-
getDefaultActiveMQPrincipal
ActiveMQPrincipal getDefaultActiveMQPrincipal()Returns the default security principal.- Returns:
- the default security principal
-
blockUntilWritable
boolean blockUntilWritable(long timeout)
-