Interface ClientConsumerInternal
-
- All Superinterfaces:
AutoCloseable,ClientConsumer
- All Known Implementing Classes:
ClientConsumerImpl
public interface ClientConsumerInternal extends ClientConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacknowledge(ClientMessage message)voidcleanUp()voidclear(boolean waitForOnMessage)voidclearAtFailover()voidflowControl(int messageBytes, boolean discountSlowConsumer)voidflushAcks()intgetBufferSize()intgetClientWindowSize()ThreadgetCurrentThread()SimpleStringgetFilterString()longgetForceDeliveryCount()intgetInitialWindowSize()intgetPriority()ClientSession.QueueQuerygetQueueInfo()SimpleStringgetQueueName()voidhandleLargeMessage(ClientLargeMessageInternal clientLargeMessage, long largeMessageSize)voidhandleLargeMessageContinuation(byte[] chunk, int flowControlSize, boolean isContinues)voidhandleMessage(ClientMessageInternal message)voidindividualAcknowledge(ClientMessage message)booleanisBrowseOnly()ThreadprepareForClose(FutureLatch future)To be called by things like MDBs during shutdown of the servervoidstart()voidstop(boolean waitForOnMessage)-
Methods inherited from interface org.apache.activemq.artemis.api.core.client.ClientConsumer
close, getConsumerContext, getLastException, getMessageHandler, isClosed, receive, receive, receiveImmediate, setMessageHandler
-
-
-
-
Method Detail
-
getQueueName
SimpleString getQueueName()
-
getFilterString
SimpleString getFilterString()
-
getPriority
int getPriority()
-
isBrowseOnly
boolean isBrowseOnly()
-
handleMessage
void handleMessage(ClientMessageInternal message) throws Exception
- Throws:
Exception
-
handleLargeMessage
void handleLargeMessage(ClientLargeMessageInternal clientLargeMessage, long largeMessageSize) throws Exception
- Throws:
Exception
-
handleLargeMessageContinuation
void handleLargeMessageContinuation(byte[] chunk, int flowControlSize, boolean isContinues) throws Exception- Throws:
Exception
-
flowControl
void flowControl(int messageBytes, boolean discountSlowConsumer) throws ActiveMQException- Throws:
ActiveMQException
-
clear
void clear(boolean waitForOnMessage) throws ActiveMQException- Throws:
ActiveMQException
-
getCurrentThread
Thread getCurrentThread()
-
prepareForClose
Thread prepareForClose(FutureLatch future) throws ActiveMQException
To be called by things like MDBs during shutdown of the server- Parameters:
future-- Throws:
ActiveMQException
-
clearAtFailover
void clearAtFailover()
-
getClientWindowSize
int getClientWindowSize()
-
getInitialWindowSize
int getInitialWindowSize()
-
getBufferSize
int getBufferSize()
-
cleanUp
void cleanUp() throws ActiveMQException- Throws:
ActiveMQException
-
acknowledge
void acknowledge(ClientMessage message) throws ActiveMQException
- Throws:
ActiveMQException
-
individualAcknowledge
void individualAcknowledge(ClientMessage message) throws ActiveMQException
- Throws:
ActiveMQException
-
flushAcks
void flushAcks() throws ActiveMQException- Throws:
ActiveMQException
-
stop
void stop(boolean waitForOnMessage) throws ActiveMQException
- Throws:
ActiveMQException
-
start
void start()
-
getQueueInfo
ClientSession.QueueQuery getQueueInfo()
-
getForceDeliveryCount
long getForceDeliveryCount()
-
-