public void onFailure(AerospikeException e) { console.error("Failed to put: namespace=%s set=%s key=%s exception=%s", key.namespace, key.setName, key.userKey, e.getMessage()); } }, writePolicy, key, bin);
public void onFailure(AerospikeException e) { console.error("Put failed: " + e.getMessage()); } }
public void onFailure(AerospikeException e) { console.error("Failed to write: namespace=%s set=%s key=%s exception=%s", key.namespace, key.setName, key.userKey, e.getMessage()); }
public void onFailure(AerospikeException e) { console.error("Failed to put: namespace=%s set=%s key=%s exception=%s", key.namespace, key.setName, key.userKey, e.getMessage()); notifyComplete(); } }, writePolicy, key, bin);
throw new AerospikeException(ex.getResultCode(), ex.getMessage());
public void onFailure(AerospikeException e) { // Retry up to 2 more times. if (++failCount <= 2) { Throwable t = e.getCause(); // Check for common socket errors. if (t != null && (t instanceof ConnectException || t instanceof IOException)) { console.info("Retrying put: " + key.userKey); try { client.put(eventLoop, this, writePolicy, key, bin); return; } catch (Exception ex) { // Fall through to error case. } } } console.error("Put failed: namespace=%s set=%s key=%s exception=%s", key.namespace, key.setName, key.userKey, e.getMessage()); } }
public void onFailure(AerospikeException e) { // Retry up to 2 more times. if (++failCount <= 2) { Throwable t = e.getCause(); // Check for common socket errors. if (t != null && (t instanceof ConnectException || t instanceof IOException)) { console.info("Retrying get: " + key.userKey); try { client.get(eventLoop, this, policy, key); return; } catch (Exception ex) { // Fall through to error case. } } } console.error("Get failed: namespace=%s set=%s key=%s exception=%s", key.namespace, key.setName, key.userKey, e.getMessage()); } }