org.apache.activemq.store.jdbc
Class JDBCMessageStore
java.lang.Object
org.apache.activemq.store.AbstractMessageStore
org.apache.activemq.store.jdbc.JDBCMessageStore
- All Implemented Interfaces:
- Service, MessageStore
- Direct Known Subclasses:
- JDBCTopicMessageStore
public class JDBCMessageStore
- extends AbstractMessageStore
| Methods inherited from class org.apache.activemq.store.AbstractMessageStore |
addMessage, asyncAddQueueMessage, asyncAddQueueMessage, asyncAddTopicMessage, asyncAddTopicMessage, dispose, getDestination, isEmpty, isPrioritizedMessages, removeAsyncMessage, setMemoryUsage, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wireFormat
protected final WireFormat wireFormat
adapter
protected final JDBCAdapter adapter
persistenceAdapter
protected final JDBCPersistenceAdapter persistenceAdapter
lastRecoveredSequenceId
protected java.util.concurrent.atomic.AtomicLong lastRecoveredSequenceId
lastRecoveredPriority
protected java.util.concurrent.atomic.AtomicLong lastRecoveredPriority
audit
protected ActiveMQMessageAudit audit
JDBCMessageStore
public JDBCMessageStore(JDBCPersistenceAdapter persistenceAdapter,
JDBCAdapter adapter,
WireFormat wireFormat,
ActiveMQDestination destination,
ActiveMQMessageAudit audit)
throws java.io.IOException
- Throws:
java.io.IOException
addMessage
public void addMessage(ConnectionContext context,
Message message)
throws java.io.IOException
- Throws:
java.io.IOException
onAdd
protected void onAdd(MessageId messageId,
long sequenceId,
byte priority)
addMessageReference
public void addMessageReference(ConnectionContext context,
MessageId messageId,
long expirationTime,
java.lang.String messageRef)
throws java.io.IOException
- Throws:
java.io.IOException
getMessage
public Message getMessage(MessageId messageId)
throws java.io.IOException
- Throws:
java.io.IOException
getMessageReference
public java.lang.String getMessageReference(MessageId messageId)
throws java.io.IOException
- Throws:
java.io.IOException
removeMessage
public void removeMessage(ConnectionContext context,
MessageAck ack)
throws java.io.IOException
- Throws:
java.io.IOException
recover
public void recover(MessageRecoveryListener listener)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeAllMessages
public void removeAllMessages(ConnectionContext context)
throws java.io.IOException
- Throws:
java.io.IOException- See Also:
MessageStore.removeAllMessages(ConnectionContext)
getMessageCount
public int getMessageCount()
throws java.io.IOException
- Throws:
java.io.IOException
recoverNextMessages
public void recoverNextMessages(int maxReturned,
MessageRecoveryListener listener)
throws java.lang.Exception
- Parameters:
maxReturned - listener -
- Throws:
java.lang.Exception- See Also:
MessageStore.recoverNextMessages(int,
org.apache.activemq.store.MessageRecoveryListener)
resetBatching
public void resetBatching()
- See Also:
MessageStore.resetBatching()
setBatch
public void setBatch(MessageId messageId)
- Specified by:
setBatch in interface MessageStore- Overrides:
setBatch in class AbstractMessageStore
setPrioritizedMessages
public void setPrioritizedMessages(boolean prioritizedMessages)
- Specified by:
setPrioritizedMessages in interface MessageStore- Overrides:
setPrioritizedMessages in class AbstractMessageStore
Copyright © 2005-2015 Red Hat, Inc.. All Rights Reserved.