Package org.apache.activemq.store.jdbc
Interface JDBCAdapter
- All Known Implementing Classes:
AxionJDBCAdapter,BlobJDBCAdapter,BytesJDBCAdapter,DB2JDBCAdapter,DefaultJDBCAdapter,HsqldbJDBCAdapter,ImageBasedJDBCAdaptor,InformixJDBCAdapter,MaxDBJDBCAdapter,MySqlJDBCAdapter,OracleBlobJDBCAdapter,OracleJDBCAdapter,PostgresqlJDBCAdapter,SqlServerJDBCAdapter,StreamJDBCAdapter,SybaseJDBCAdapter,TransactJDBCAdapter
public interface JDBCAdapter
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoAddMessage(TransactionContext c, long sequence, org.apache.activemq.command.MessageId messageID, org.apache.activemq.command.ActiveMQDestination destination, byte[] data, long expiration, byte priority, org.apache.activemq.command.XATransactionId xid) voiddoAddMessageReference(TransactionContext c, long sequence, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.ActiveMQDestination destination, long expirationTime, String messageRef) voiddoClearLastAck(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, byte priority, String subId, String subName) voiddoCommitAddOp(TransactionContext c, long preparedSequence, long sequence) voidvoidvoiddoDeleteSubscription(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destinationName, String clientId, String subscriptionName) voidorg.apache.activemq.command.SubscriptionInfo[]doGetAllSubscriptions(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination) Set<org.apache.activemq.command.ActiveMQDestination>intdoGetDurableSubscriberMessageCount(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, boolean isPrioritizeMessages) longdoGetLastAckedDurableSubscriberMessageId(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriberName) longlongdoGetLastProducerSequenceId(TransactionContext c, org.apache.activemq.command.ProducerId id) byte[]doGetMessage(TransactionContext c, org.apache.activemq.command.MessageId id) byte[]doGetMessageById(TransactionContext c, long storeSequenceId) intdoGetMessageCount(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination) doGetMessageReference(TransactionContext c, long id) org.apache.activemq.command.SubscriptionInfodoGetSubscriberEntry(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName) voiddoMessageIdScan(TransactionContext c, int limit, JDBCMessageIdScanListener listener) voiddoRecordDestination(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination) voiddoRecover(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, JDBCMessageRecoveryListener listener) voiddoRecoverNextMessages(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, long[] lastRecoveredEntries, long maxSeq, int maxReturned, boolean isPrioritizeMessages, JDBCMessageRecoveryListener listener) voiddoRecoverNextMessages(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, long seq, long priority, int maxReturned, JDBCMessageRecoveryListener listener) voiddoRecoverNextMessagesWithPriority(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, long seq, long priority, int maxReturned, JDBCMessageRecoveryListener listener) voiddoRecoverPreparedOps(TransactionContext c, JdbcMemoryTransactionStore jdbcMemoryTransactionStore) voiddoRecoverSubscription(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, JDBCMessageRecoveryListener listener) voiddoRemoveAllMessages(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destinationName) voiddoRemoveMessage(TransactionContext c, long seq, org.apache.activemq.command.XATransactionId xid) voiddoSetLastAck(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.XATransactionId xid, String clientId, String subscriptionName, long seq, long prio) voiddoSetLastAckWithPriority(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.XATransactionId xid, String clientId, String subscriptionName, long re, long re1) voiddoSetSubscriberEntry(TransactionContext c, org.apache.activemq.command.SubscriptionInfo subscriptionInfo, boolean retroactive, boolean isPrioritizeMessages) voiddoUpdateMessage(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.MessageId id, byte[] data) intlong[]getStoreSequenceId(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.MessageId messageID) limitQuery(String query) voidsetMaxRows(int maxRows) voidsetStatements(Statements statementProvider) voidsetUseExternalMessageReferences(boolean useExternalMessageReferences)
-
Method Details
-
setStatements
-
doCreateTables
- Throws:
SQLExceptionIOException
-
doDropTables
- Throws:
SQLExceptionIOException
-
doAddMessage
void doAddMessage(TransactionContext c, long sequence, org.apache.activemq.command.MessageId messageID, org.apache.activemq.command.ActiveMQDestination destination, byte[] data, long expiration, byte priority, org.apache.activemq.command.XATransactionId xid) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doAddMessageReference
void doAddMessageReference(TransactionContext c, long sequence, org.apache.activemq.command.MessageId messageId, org.apache.activemq.command.ActiveMQDestination destination, long expirationTime, String messageRef) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doGetMessage
byte[] doGetMessage(TransactionContext c, org.apache.activemq.command.MessageId id) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doGetMessageById
byte[] doGetMessageById(TransactionContext c, long storeSequenceId) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doGetMessageReference
- Throws:
SQLExceptionIOException
-
doRemoveMessage
void doRemoveMessage(TransactionContext c, long seq, org.apache.activemq.command.XATransactionId xid) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doRecover
void doRecover(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, JDBCMessageRecoveryListener listener) throws Exception - Throws:
Exception
-
doSetLastAck
void doSetLastAck(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.XATransactionId xid, String clientId, String subscriptionName, long seq, long prio) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doRecoverSubscription
void doRecoverSubscription(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, JDBCMessageRecoveryListener listener) throws Exception - Throws:
Exception
-
doRecoverNextMessages
void doRecoverNextMessages(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, long seq, long priority, int maxReturned, JDBCMessageRecoveryListener listener) throws Exception - Throws:
Exception
-
doRecoverNextMessagesWithPriority
void doRecoverNextMessagesWithPriority(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, long seq, long priority, int maxReturned, JDBCMessageRecoveryListener listener) throws Exception - Throws:
Exception
-
doSetSubscriberEntry
void doSetSubscriberEntry(TransactionContext c, org.apache.activemq.command.SubscriptionInfo subscriptionInfo, boolean retroactive, boolean isPrioritizeMessages) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doGetSubscriberEntry
org.apache.activemq.command.SubscriptionInfo doGetSubscriberEntry(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
getStoreSequenceId
long[] getStoreSequenceId(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.MessageId messageID) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doRemoveAllMessages
void doRemoveAllMessages(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destinationName) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doDeleteSubscription
void doDeleteSubscription(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destinationName, String clientId, String subscriptionName) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doDeleteOldMessages
- Throws:
SQLExceptionIOException
-
doGetLastMessageStoreSequenceId
- Throws:
SQLExceptionIOException
-
doGetDestinations
Set<org.apache.activemq.command.ActiveMQDestination> doGetDestinations(TransactionContext c) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
setUseExternalMessageReferences
void setUseExternalMessageReferences(boolean useExternalMessageReferences) -
doGetAllSubscriptions
org.apache.activemq.command.SubscriptionInfo[] doGetAllSubscriptions(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doGetDurableSubscriberMessageCount
int doGetDurableSubscriberMessageCount(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriptionName, boolean isPrioritizeMessages) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doGetMessageCount
int doGetMessageCount(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doRecoverNextMessages
void doRecoverNextMessages(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, long[] lastRecoveredEntries, long maxSeq, int maxReturned, boolean isPrioritizeMessages, JDBCMessageRecoveryListener listener) throws Exception - Throws:
Exception
-
doGetLastAckedDurableSubscriberMessageId
long doGetLastAckedDurableSubscriberMessageId(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, String clientId, String subscriberName) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doMessageIdScan
void doMessageIdScan(TransactionContext c, int limit, JDBCMessageIdScanListener listener) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doGetLastProducerSequenceId
long doGetLastProducerSequenceId(TransactionContext c, org.apache.activemq.command.ProducerId id) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doSetLastAckWithPriority
void doSetLastAckWithPriority(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.XATransactionId xid, String clientId, String subscriptionName, long re, long re1) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
getMaxRows
int getMaxRows() -
setMaxRows
void setMaxRows(int maxRows) -
doRecordDestination
void doRecordDestination(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doRecoverPreparedOps
void doRecoverPreparedOps(TransactionContext c, JdbcMemoryTransactionStore jdbcMemoryTransactionStore) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doCommitAddOp
void doCommitAddOp(TransactionContext c, long preparedSequence, long sequence) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doClearLastAck
void doClearLastAck(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, byte priority, String subId, String subName) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
doUpdateMessage
void doUpdateMessage(TransactionContext c, org.apache.activemq.command.ActiveMQDestination destination, org.apache.activemq.command.MessageId id, byte[] data) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
limitQuery
-