Spring Data Couchbase

org.springframework.data.couchbase.core
Interface BucketCallback<T>


public interface BucketCallback<T>

Defines the callback which will be wrapped and executed on a bucket.

Author:
Michael Nitschinger

Method Summary
 T doInBucket()
          The enclosed body will be executed on the connected bucket.
 

Method Detail

doInBucket

T doInBucket()
             throws TimeoutException,
                    ExecutionException,
                    InterruptedException
The enclosed body will be executed on the connected bucket.

Returns:
the result of the enclosed execution.
Throws:
TimeoutException - if the enclosed operation timed out.
ExecutionException - if the result could not be retrieved because of a thrown exception before.
InterruptedException - if the enclosed operation was interrupted.

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.