com.aerospike.client.listener
Interface ExistsListener


public interface ExistsListener

Asynchronous result notifications for exists commands.


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

Method Detail

onSuccess

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

Parameters:
key - unique record identifier
exists - whether key exists on server

onFailure

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

Parameters:
exception - error that occurred


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