@Override public void startUp() { super.startUp(); quotaDiffsProducer = new QueuedQuotaUpdatesProducer(sharedQueue, quotaStore); // the task that takes quota updates from the queue and saves them to the store quotaUsageUpdatesConsumer = new QueuedQuotaUpdatesConsumer(quotaStore, sharedQueue); // the listener that puts quota updates on the queue storageBroker.addBlobStoreListener(quotaDiffsProducer); getExecutorService().submit(quotaUsageUpdatesConsumer); }