|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.store.jdbc.JDBCMessageStore
public class JDBCMessageStore
Field Summary | |
---|---|
protected JDBCAdapter |
adapter
|
protected ActiveMQDestination |
destination
|
protected JDBCPersistenceAdapter |
persistenceAdapter
|
protected WireFormat |
wireFormat
|
Constructor Summary | |
---|---|
JDBCMessageStore(JDBCPersistenceAdapter persistenceAdapter,
JDBCAdapter adapter,
WireFormat wireFormat,
ActiveMQDestination destination)
|
Method Summary | |
---|---|
void |
addMessage(ConnectionContext context,
Message message)
Adds a message to the message store |
void |
addMessageReference(ConnectionContext context,
MessageId messageId,
long expirationTime,
java.lang.String messageRef)
Adds a message reference to the message store |
ActiveMQDestination |
getDestination()
The destination that the message store is holding messages for. |
Message |
getMessage(MessageId messageId)
Looks up a message using either the String messageID or the messageNumber. |
java.lang.String |
getMessageReference(MessageId messageId)
Looks up a message using either the String messageID or the messageNumber. |
void |
recover(MessageRecoveryListener listener)
Recover any messages to be delivered. |
void |
removeAllMessages(ConnectionContext context)
Removes all the messages from the message store. |
void |
removeMessage(ConnectionContext context,
MessageAck ack)
Removes a message from the message store. |
void |
setUsageManager(UsageManager usageManager)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final WireFormat wireFormat
protected final ActiveMQDestination destination
protected final JDBCAdapter adapter
protected final JDBCPersistenceAdapter persistenceAdapter
Constructor Detail |
---|
public JDBCMessageStore(JDBCPersistenceAdapter persistenceAdapter, JDBCAdapter adapter, WireFormat wireFormat, ActiveMQDestination destination)
Method Detail |
---|
public void addMessage(ConnectionContext context, Message message) throws java.io.IOException
MessageStore
addMessage
in interface MessageStore
context
- TODO
java.io.IOException
public void addMessageReference(ConnectionContext context, MessageId messageId, long expirationTime, java.lang.String messageRef) throws java.io.IOException
MessageStore
addMessageReference
in interface MessageStore
context
- TODOmessageId
- TODOexpirationTime
- TODO
java.io.IOException
public Message getMessage(MessageId messageId) throws java.io.IOException
MessageStore
getMessage
in interface MessageStore
messageId
- which contains either the messageID or the messageNumber
java.io.IOException
public java.lang.String getMessageReference(MessageId messageId) throws java.io.IOException
MessageStore
getMessageReference
in interface MessageStore
messageId
- which contains either the messageID or the messageNumber
java.io.IOException
public void removeMessage(ConnectionContext context, MessageAck ack) throws java.io.IOException
MessageStore
removeMessage
in interface MessageStore
context
- TODOack
- the ack request that cause the message to be removed. It conatins
the identity which contains the messageID of the message that needs to be removed.
java.io.IOException
public void recover(MessageRecoveryListener listener) throws java.lang.Exception
MessageStore
recover
in interface MessageStore
java.lang.Exception
public void start()
start
in interface Service
public void stop()
stop
in interface Service
public void removeAllMessages(ConnectionContext context) throws java.io.IOException
MessageStore
removeAllMessages
in interface MessageStore
context
- TODO
java.io.IOException
MessageStore.removeAllMessages(ConnectionContext)
public ActiveMQDestination getDestination()
MessageStore
getDestination
in interface MessageStore
public void setUsageManager(UsageManager usageManager)
setUsageManager
in interface MessageStore
usageManager
- The UsageManager that is controlling the destination's memory usage.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |