Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / datastore / PostPutFuture.java
blob577c2914e4955a9d5512cd955ad5987e92def123
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 package com.google.appengine.api.datastore;
4 import java.util.List;
5 import java.util.concurrent.Future;
7 /**
8 * {@link PostOpFuture} implementation that invokes PostPut callbacks.
11 class PostPutFuture extends PostOpFuture<List<Key>> {
12 private final PutContext postPutContext;
14 PostPutFuture(Future<List<Key>> delegate, DatastoreCallbacks callbacks,
15 PutContext postPutContext) {
16 super(delegate, callbacks);
17 this.postPutContext = postPutContext;
20 @Override
21 void executeCallbacks(List<Key> result) {
22 datastoreCallbacks.executePostPutCallbacks(postPutContext);