Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / datastore / PostDeleteFuture.java
blobf5fc77c753d8f0903a1a7ebb253582b23fe37b4c
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 package com.google.appengine.api.datastore;
4 import java.util.concurrent.Future;
6 /**
7 * {@link PostOpFuture} implementation that invokes PostDelete callbacks.
9 */
10 class PostDeleteFuture extends PostOpFuture<Void> {
11 private final DeleteContext postDeleteContext;
13 PostDeleteFuture(Future<Void> delegate, DatastoreCallbacks callbacks,
14 DeleteContext postDeleteContext) {
15 super(delegate, callbacks);
16 this.postDeleteContext = postDeleteContext;
19 @Override
20 void executeCallbacks(Void ignore) {
21 datastoreCallbacks.executePostDeleteCallbacks(postDeleteContext);