mirror of https://github.com/apache/activemq.git
AMQ-4885: Renamed some API methods in MessageStore due typos.
This commit is contained in:
parent
25f4e874eb
commit
c0090f6f0c
|
@ -255,7 +255,7 @@ public class Topic extends BaseDestination implements Task {
|
||||||
// This destination might be a pattern
|
// This destination might be a pattern
|
||||||
synchronized (consumers) {
|
synchronized (consumers) {
|
||||||
consumers.add(subscription);
|
consumers.add(subscription);
|
||||||
topicStore.addSubsciption(info, subscription.getConsumerInfo().isRetroactive());
|
topicStore.addSubscription(info, subscription.getConsumerInfo().isRetroactive());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -147,10 +147,10 @@ public interface MessageStore extends Service {
|
||||||
ActiveMQDestination getDestination();
|
ActiveMQDestination getDestination();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param memoeyUSage The SystemUsage that is controlling the
|
* @param memoryUsage The SystemUsage that is controlling the
|
||||||
* destination's memory usage.
|
* destination's memory usage.
|
||||||
*/
|
*/
|
||||||
void setMemoryUsage(MemoryUsage memoeyUSage);
|
void setMemoryUsage(MemoryUsage memoryUsage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the number of messages ready to deliver
|
* @return the number of messages ready to deliver
|
||||||
|
|
|
@ -94,8 +94,8 @@ public class ProxyTopicMessageStore implements TopicMessageStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
public void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
||||||
delegate.addSubsciption(subscriptionInfo, retroactive);
|
delegate.addSubscription(subscriptionInfo, retroactive);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -129,5 +129,5 @@ public interface TopicMessageStore extends MessageStore {
|
||||||
* @param retroactive
|
* @param retroactive
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException;
|
void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException;
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ public class MemoryTopicMessageStore extends MemoryMessageStore implements Topic
|
||||||
return subscriberDatabase.get(new SubscriptionKey(clientId, subscriptionName));
|
return subscriberDatabase.get(new SubscriptionKey(clientId, subscriptionName));
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void addSubsciption(SubscriptionInfo info, boolean retroactive) throws IOException {
|
public synchronized void addSubscription(SubscriptionInfo info, boolean retroactive) throws IOException {
|
||||||
SubscriptionKey key = new SubscriptionKey(info);
|
SubscriptionKey key = new SubscriptionKey(info);
|
||||||
MemoryTopicSub sub = new MemoryTopicSub();
|
MemoryTopicSub sub = new MemoryTopicSub();
|
||||||
topicSubMap.put(key, sub);
|
topicSubMap.put(key, sub);
|
||||||
|
|
|
@ -330,7 +330,7 @@ public class JDBCTopicMessageStore extends JDBCMessageStore implements TopicMess
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
public void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
||||||
TransactionContext c = persistenceAdapter.getTransactionContext();
|
TransactionContext c = persistenceAdapter.getTransactionContext();
|
||||||
try {
|
try {
|
||||||
c = persistenceAdapter.getTransactionContext();
|
c = persistenceAdapter.getTransactionContext();
|
||||||
|
|
|
@ -71,9 +71,9 @@ public class JournalTopicMessageStore extends JournalMessageStore implements Top
|
||||||
return longTermStore.lookupSubscription(clientId, subscriptionName);
|
return longTermStore.lookupSubscription(clientId, subscriptionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
public void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
||||||
this.peristenceAdapter.checkpoint(true, true);
|
this.peristenceAdapter.checkpoint(true, true);
|
||||||
longTermStore.addSubsciption(subscriptionInfo, retroactive);
|
longTermStore.addSubscription(subscriptionInfo, retroactive);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addMessage(ConnectionContext context, Message message) throws IOException {
|
public void addMessage(ConnectionContext context, Message message) throws IOException {
|
||||||
|
|
|
@ -662,7 +662,7 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setMemoryUsage(MemoryUsage memoeyUSage) {
|
public void setMemoryUsage(MemoryUsage memoryUsage) {
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void start() throws Exception {
|
public void start() throws Exception {
|
||||||
|
@ -765,7 +765,7 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
public void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
||||||
String subscriptionKey = subscriptionKey(subscriptionInfo.getClientId(), subscriptionInfo
|
String subscriptionKey = subscriptionKey(subscriptionInfo.getClientId(), subscriptionInfo
|
||||||
.getSubscriptionName());
|
.getSubscriptionName());
|
||||||
KahaSubscriptionCommand command = new KahaSubscriptionCommand();
|
KahaSubscriptionCommand command = new KahaSubscriptionCommand();
|
||||||
|
|
|
@ -265,7 +265,7 @@ public class TempKahaDBStore extends TempMessageDatabase implements PersistenceA
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setMemoryUsage(MemoryUsage memoeyUSage) {
|
public void setMemoryUsage(MemoryUsage memoryUsage) {
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void start() throws Exception {
|
public void start() throws Exception {
|
||||||
|
@ -294,7 +294,7 @@ public class TempKahaDBStore extends TempMessageDatabase implements PersistenceA
|
||||||
processRemove(command, null);
|
processRemove(command, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
public void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
|
||||||
String subscriptionKey = subscriptionKey(subscriptionInfo.getClientId(), subscriptionInfo.getSubscriptionName());
|
String subscriptionKey = subscriptionKey(subscriptionInfo.getClientId(), subscriptionInfo.getSubscriptionName());
|
||||||
KahaSubscriptionCommand command = new KahaSubscriptionCommand();
|
KahaSubscriptionCommand command = new KahaSubscriptionCommand();
|
||||||
command.setDestination(dest);
|
command.setDestination(dest);
|
||||||
|
|
|
@ -816,7 +816,7 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def addSubsciption(info: SubscriptionInfo, retroactive: Boolean) = {
|
def addSubscription(info: SubscriptionInfo, retroactive: Boolean) = {
|
||||||
check_running
|
check_running
|
||||||
var sub = db.addSubscription(key, info)
|
var sub = db.addSubscription(key, info)
|
||||||
subscriptions.synchronized {
|
subscriptions.synchronized {
|
||||||
|
|
Loading…
Reference in New Issue