Class InVMConnection
- java.lang.Object
-
- org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnection
-
- All Implemented Interfaces:
Connection
public class InVMConnection extends Object implements Connection
-
-
Constructor Summary
Constructors Constructor Description InVMConnection(int serverID, String id, BufferHandler handler, BaseConnectionLifeCycleListener listener, Executor executor)InVMConnection(int serverID, String id, BufferHandler handler, BaseConnectionLifeCycleListener listener, Executor executor, ActiveMQPrincipal defaultActiveMQPrincipal)InVMConnection(int serverID, BufferHandler handler, BaseConnectionLifeCycleListener listener, Executor executor)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.spi.core.remoting.Connection
blockUntilWritable, flush, getRouter, getSNIHostName
-
-
-
-
Constructor Detail
-
InVMConnection
public InVMConnection(int serverID, BufferHandler handler, BaseConnectionLifeCycleListener listener, Executor executor)
-
InVMConnection
public InVMConnection(int serverID, String id, BufferHandler handler, BaseConnectionLifeCycleListener listener, Executor executor)
-
InVMConnection
public InVMConnection(int serverID, String id, BufferHandler handler, BaseConnectionLifeCycleListener listener, Executor executor, ActiveMQPrincipal defaultActiveMQPrincipal)
-
-
Method Detail
-
setEnableBufferPooling
public void setEnableBufferPooling(boolean enableBufferPooling)
-
forceClose
public void forceClose()
- Specified by:
forceClosein interfaceConnection
-
isWritable
public boolean isWritable(ReadyListener listener)
- Specified by:
isWritablein interfaceConnection
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceConnection
-
fireReady
public void fireReady(boolean ready)
- Specified by:
fireReadyin interfaceConnection
-
getProtocolConnection
public RemotingConnection getProtocolConnection()
- Specified by:
getProtocolConnectionin interfaceConnection
-
setProtocolConnection
public void setProtocolConnection(RemotingConnection connection)
- Specified by:
setProtocolConnectionin interfaceConnection
-
close
public void close()
- Specified by:
closein interfaceConnection
-
setAutoRead
public void setAutoRead(boolean autoRead)
- Specified by:
setAutoReadin interfaceConnection
-
createTransportBuffer
public ActiveMQBuffer createTransportBuffer(int size)
- Specified by:
createTransportBufferin interfaceConnection
-
getID
public Object getID()
- Specified by:
getIDin interfaceConnection
-
checkFlushBatchBuffer
public void checkFlushBatchBuffer()
- Specified by:
checkFlushBatchBufferin interfaceConnection
-
write
public void write(ActiveMQBuffer buffer, boolean requestFlush)
- Specified by:
writein interfaceConnection
-
write
public void write(ActiveMQBuffer buffer)
- Specified by:
writein interfaceConnection
-
write
public void write(ActiveMQBuffer buffer, boolean flush, boolean batch)
- Specified by:
writein interfaceConnection
-
write
public void write(ActiveMQBuffer buffer, boolean flush, boolean batch, io.netty.channel.ChannelFutureListener futureListener)
- Specified by:
writein interfaceConnection
-
getRemoteAddress
public String getRemoteAddress()
- Specified by:
getRemoteAddressin interfaceConnection
-
getLocalAddress
public String getLocalAddress()
- Specified by:
getLocalAddressin interfaceConnection
-
getBatchingBufferSize
public int getBatchingBufferSize()
-
isUsingProtocolHandling
public boolean isUsingProtocolHandling()
- Specified by:
isUsingProtocolHandlingin interfaceConnection
-
getDefaultActiveMQPrincipal
public ActiveMQPrincipal getDefaultActiveMQPrincipal()
- Specified by:
getDefaultActiveMQPrincipalin interfaceConnection
-
setFlushEnabled
public static void setFlushEnabled(boolean enable)
-
getExecutor
public Executor getExecutor()
-
getConnectorConfig
public TransportConfiguration getConnectorConfig()
- Specified by:
getConnectorConfigin interfaceConnection
-
isDirectDeliver
public boolean isDirectDeliver()
- Specified by:
isDirectDeliverin interfaceConnection
-
setDirectDeliver
public void setDirectDeliver(boolean directDeliver)
-
isSameTarget
public boolean isSameTarget(TransportConfiguration... configs)
- Specified by:
isSameTargetin interfaceConnection
-
-