Spring Data Commmons

org.springframework.persistence
Interface AsynchStoreCompletionListener<V>

Type Parameters:
V - new value type
All Known Implementing Classes:
AsynchStoreCompletionListener.NONE

public interface AsynchStoreCompletionListener<V>

Listener interface for asynchronous storage operations. Can be annotated with OnlyOnFailure as an optimization if the listener is only interested in compensating transactions in the event of write failure.

Author:
Rod Johnson

Nested Class Summary
static class AsynchStoreCompletionListener.NONE
          Constant indicating no store completion action
static class AsynchStoreCompletionListener.StoreResult
           
 
Method Summary
 void onCompletion(AsynchStoreCompletionListener.StoreResult result, V newValue, Field foreignStore)
           
 

Method Detail

onCompletion

void onCompletion(AsynchStoreCompletionListener.StoreResult result,
                  V newValue,
                  Field foreignStore)

Spring Data Commmons

Copyright © 2011. All Rights Reserved.