public interface CoreRemotingConnection extends RemotingConnection
Modifier and Type | Method and Description |
---|---|
boolean |
blockUntilWritable(int size,
long timeout) |
long |
generateChannelID()
generate a unique (within this connection) channel id
|
long |
getBlockingCallFailoverTimeout()
Returns the current timeout for blocking calls
|
long |
getBlockingCallTimeout()
Returns the current timeout for blocking calls
|
Channel |
getChannel(long channelID,
int confWindowSize)
Returns the channel with the channel id specified.
|
int |
getChannelVersion()
The client protocol used on the communication.
|
ActiveMQPrincipal |
getDefaultActiveMQPrincipal()
Returns the default security principal
|
long |
getIDGeneratorSequence()
Returns the next id to be chosen.
|
Object |
getTransferLock()
Returns the transfer lock used when transferring connections.
|
default boolean |
isVersionBeforeAddressChange() |
default boolean |
isVersionBeforeAsyncResponseChange() |
default boolean |
isVersionNewFQQN() |
default boolean |
isVersionSupportConsumerPriority() |
void |
putChannel(long channelID,
Channel channel)
add the channel with the specified channel id
|
boolean |
removeChannel(long channelID)
remove the channel with the specified channel id
|
void |
setChannelVersion(int clientVersion)
Sets the client protocol used on the communication.
|
void |
syncIDGeneratorSequence(long id)
Resets the id generator used to generate id's.
|
addCloseListener, addFailureListener, asyncFail, checkDataReceived, createTransportBuffer, destroy, 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
bufferReceived
int getChannelVersion()
default boolean isVersionBeforeAddressChange()
default boolean isVersionBeforeAsyncResponseChange()
default boolean isVersionSupportConsumerPriority()
default boolean isVersionNewFQQN()
void setChannelVersion(int clientVersion)
Channel getChannel(long channelID, int confWindowSize)
If it does not exist create it with the confirmation window size.
channelID
- the channel idconfWindowSize
- the confirmation window sizevoid putChannel(long channelID, Channel channel)
channelID
- the channel idchannel
- the channelboolean removeChannel(long channelID)
channelID
- the channel idlong generateChannelID()
void syncIDGeneratorSequence(long id)
id
- the first id to set it tolong getIDGeneratorSequence()
long getBlockingCallTimeout()
long getBlockingCallFailoverTimeout()
Object getTransferLock()
ActiveMQPrincipal getDefaultActiveMQPrincipal()
boolean blockUntilWritable(int size, long timeout)
size
- size we are trying to writetimeout
- IllegalStateException
- if the connection is closedCopyright © 2019 JBoss by Red Hat. All rights reserved.