1 // Copyright 2011 Google Inc. All Rights Reserved.
2 package com
.google
.appengine
.api
.datastore
;
5 import java
.util
.concurrent
.Future
;
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
;
21 void executeCallbacks(List
<Key
> result
) {
22 datastoreCallbacks
.executePostPutCallbacks(postPutContext
);