@Override public Task<Void> then(Task<Void> task) { Parse.getEventuallyQueue() .notifyTestHelper(ParseCommandCache.TestHelper.OBJECT_REMOVED); return task; } });
public ParseAnalyticsController getAnalyticsController() { if (analyticsController.get() == null) { // TODO(mengyan): Do not rely on Parse global analyticsController.compareAndSet(null, new ParseAnalyticsController(Parse.getEventuallyQueue())); } return analyticsController.get(); }
@Override public Task<Void> then(Task<Void> task) { if (success) { Parse.getEventuallyQueue() .notifyTestHelper(ParseCommandCache.TestHelper.OBJECT_UPDATED); } return task; } });
/** * Gets the shared command cache object for all ParseObjects. This command cache is used to * locally store save commands created by the ParseObject.saveEventually(). When a new * ParseCommandCache is instantiated, it will begin running its run loop, which will start by * processing any commands already stored in the on-disk queue. */ static ParseEventuallyQueue getEventuallyQueue() { Context context = ParsePlugins.get().applicationContext(); return getEventuallyQueue(context); }
command.setLocalId(localId); runEventuallyTask = Parse.getEventuallyQueue().enqueueEventuallyAsync(command, ParseObject.this);
Parse.getEventuallyQueue().fakeObjectUpdate(); return Task.forResult(null); ParseEventuallyQueue cache = Parse.getEventuallyQueue(); runEventuallyTask = cache.enqueueEventuallyAsync(command, ParseObject.this); enqueueSaveEventuallyOperationAsync(operationSet);