com.aerospike.client.listener
Interface WriteListener


public interface WriteListener

Asynchronous result notifications for put, append, prepend, add, delete and touch commands.


Method Summary
 void onFailure(AerospikeException exception)
          This method is called when an asynchronous write command fails.
 void onSuccess(Key key)
          This method is called when an asynchronous write command completes successfully.
 

Method Detail

onSuccess

void onSuccess(Key key)
This method is called when an asynchronous write command completes successfully.

Parameters:
key - unique record identifier

onFailure

void onFailure(AerospikeException exception)
This method is called when an asynchronous write command fails.

Parameters:
exception - error that occurred


Copyright © 2012–2014 Aerospike, Inc. All rights reserved.