AMQ-4885: Renamed some API methods in MessageStore due typos.

This commit is contained in:
Claus Ibsen 2013-11-22 11:21:42 +01:00
parent 25f4e874eb
commit c0090f6f0c
10 changed files with 15 additions and 15 deletions

View File

@ -255,7 +255,7 @@ public class Topic extends BaseDestination implements Task {
// This destination might be a pattern
synchronized (consumers) {
consumers.add(subscription);
topicStore.addSubsciption(info, subscription.getConsumerInfo().isRetroactive());
topicStore.addSubscription(info, subscription.getConsumerInfo().isRetroactive());
}
}

View File

@ -147,10 +147,10 @@ public interface MessageStore extends Service {
ActiveMQDestination getDestination();
/**
* @param memoeyUSage The SystemUsage that is controlling the
* @param memoryUsage The SystemUsage that is controlling the
* destination's memory usage.
*/
void setMemoryUsage(MemoryUsage memoeyUSage);
void setMemoryUsage(MemoryUsage memoryUsage);
/**
* @return the number of messages ready to deliver

View File

@ -94,8 +94,8 @@ public class ProxyTopicMessageStore implements TopicMessageStore {
}
@Override
public void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
delegate.addSubsciption(subscriptionInfo, retroactive);
public void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException {
delegate.addSubscription(subscriptionInfo, retroactive);
}
@Override

View File

@ -129,5 +129,5 @@ public interface TopicMessageStore extends MessageStore {
* @param retroactive
* @throws IOException
*/
void addSubsciption(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException;
void addSubscription(SubscriptionInfo subscriptionInfo, boolean retroactive) throws IOException;
}

View File

@ -80,7 +80,7 @@ public class MemoryTopicMessageStore extends MemoryMessageStore implements Topic
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);
MemoryTopicSub sub = new MemoryTopicSub();
topicSubMap.put(key, sub);

View File

@ -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();
try {
c = persistenceAdapter.getTransactionContext();

View File

@ -71,9 +71,9 @@ public class JournalTopicMessageStore extends JournalMessageStore implements Top
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);
longTermStore.addSubsciption(subscriptionInfo, retroactive);
longTermStore.addSubscription(subscriptionInfo, retroactive);
}
public void addMessage(ConnectionContext context, Message message) throws IOException {

View File

@ -662,7 +662,7 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter {
}
@Override
public void setMemoryUsage(MemoryUsage memoeyUSage) {
public void setMemoryUsage(MemoryUsage memoryUsage) {
}
@Override
public void start() throws Exception {
@ -765,7 +765,7 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter {
}
@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
.getSubscriptionName());
KahaSubscriptionCommand command = new KahaSubscriptionCommand();

View File

@ -265,7 +265,7 @@ public class TempKahaDBStore extends TempMessageDatabase implements PersistenceA
}
@Override
public void setMemoryUsage(MemoryUsage memoeyUSage) {
public void setMemoryUsage(MemoryUsage memoryUsage) {
}
@Override
public void start() throws Exception {
@ -294,7 +294,7 @@ public class TempKahaDBStore extends TempMessageDatabase implements PersistenceA
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());
KahaSubscriptionCommand command = new KahaSubscriptionCommand();
command.setDestination(dest);

View File

@ -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
var sub = db.addSubscription(key, info)
subscriptions.synchronized {