public <D extends Operation.Data, T, V extends Operation.Variables> GraphQLStoreOperation<Set<String>> write(@Nonnull final Operation<D, T, V> operation, @Nonnull final D operationData) { return mStore.write(operation, operationData); }
public GraphQLStoreOperation<Set<String>> write(@Nonnull final GraphqlFragment fragment, @Nonnull final CacheKey cacheKey, @Nonnull final Operation.Variables variables) { return mStore.write(fragment, cacheKey, variables); }
@Override public void run() { try { Log.v(TAG,"Thread:[" + Thread.currentThread().getId() +"]: Updating store with the optimistic update for [" + request.operation +"]"); store.write(request.operation, data).execute(); } catch (Exception e) { Log.e(TAG, "Thread:[" + Thread.currentThread().getId() +"]: failed to update store with optimistic update for: [" + request.operation +"]"); } } });