QueueingConsumerBasedImpl
instead.@Deprecated public class MessageConsumerImpl extends AbstractMessageConsumer
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageConsumerImpl.Builder
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_MAX_PARALLEL_PROCESSED_MESSAGES
Deprecated.
Default value of the
AbstractMessageConsumer.maxParallelProcessedMsgs attribute. |
private ExecutorService |
executor
Deprecated.
Semaphore used to control the number of messages that can be processed in
parallel.
|
private static org.slf4j.Logger |
LOGGER
Deprecated.
|
private static int |
MAX_MESSAGE_BUFFER_SIZE
Deprecated.
|
private boolean |
oldFormatWarningPrinted
Deprecated.
|
protected Map<String,DataReceiveState> |
streamStats
Deprecated.
|
channel, name, receiver| Constructor and Description |
|---|
MessageConsumerImpl(DataReceiver receiver,
com.rabbitmq.client.Channel channel,
int maxParallelProcessedMsgs)
Deprecated.
|
MessageConsumerImpl(DataReceiver receiver,
com.rabbitmq.client.Channel channel,
int maxParallelProcessedMsgs,
String name)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static MessageConsumerImpl.Builder |
builder()
Deprecated.
|
void |
close()
Deprecated.
|
int |
getOpenStreamCount()
Deprecated.
|
protected boolean |
handleMessage(com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body)
Deprecated.
|
protected boolean |
handleSimpleMessage(byte[] body)
Deprecated.
|
protected void |
processMessageData(byte[] messageData,
DataReceiveState state)
Deprecated.
|
void |
waitForTermination()
Deprecated.
|
finishProcessing, handleDeliverygetChannel, getConsumerTag, handleCancel, handleCancelOk, handleConsumeOk, handleRecoverOk, handleShutdownSignalprivate static final org.slf4j.Logger LOGGER
private static final int MAX_MESSAGE_BUFFER_SIZE
protected static final int DEFAULT_MAX_PARALLEL_PROCESSED_MESSAGES
AbstractMessageConsumer.maxParallelProcessedMsgs attribute.private ExecutorService executor
protected Map<String,DataReceiveState> streamStats
private boolean oldFormatWarningPrinted
public MessageConsumerImpl(DataReceiver receiver, com.rabbitmq.client.Channel channel, int maxParallelProcessedMsgs)
public MessageConsumerImpl(DataReceiver receiver, com.rabbitmq.client.Channel channel, int maxParallelProcessedMsgs, String name)
protected boolean handleMessage(com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body)
throws IOException
handleMessage in class AbstractMessageConsumerIOExceptionprotected boolean handleSimpleMessage(byte[] body)
throws IOException
properties - body - IOExceptionprotected void processMessageData(byte[] messageData,
DataReceiveState state)
public int getOpenStreamCount()
getOpenStreamCount in interface MessageConsumergetOpenStreamCount in class AbstractMessageConsumerpublic void close()
throws IOException
IOExceptionpublic void waitForTermination()
waitForTermination in interface MessageConsumerwaitForTermination in class AbstractMessageConsumerpublic static MessageConsumerImpl.Builder builder()
Copyright © 2017–2018. All rights reserved.