@Override public void run() { try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); callback.onFailure(result); } } });
@Override public void run() { try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); callback.onFailure(result); } } });
@Override public void run() { try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); callback.onFailure(result); } } });
@Override public void run() { try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); callback.onFailure(result); } } });
try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); callback.onAbort(new AsyncTouchResult(identifier)); throw new DataStoreException("Cannot touch the record " + identifier.toString(), e);
try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); } catch (Exception e) { if (callback != null) { callback.onAbort(new AsyncTouchResult(identifier));
@Override public void run() { try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); callback.onFailure(result); } } });
try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); callback.onAbort(new AsyncTouchResult(identifier)); throw new DataStoreException("Cannot touch the record " + identifier.toString(), e);
try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); } catch (Exception e) { if (callback != null) { callback.onAbort(new AsyncTouchResult(identifier));
try { touch(identifier, minModifiedDate); callback.onSuccess(new AsyncTouchResult(identifier)); } catch (DataStoreException e) { AsyncTouchResult result = new AsyncTouchResult( identifier); result.setException(e); } catch (Exception e) { if (callback != null) { callback.onAbort(new AsyncTouchResult(identifier));
@Override public void touchAsync(DataIdentifier identifier, long minModifiedDate, AsyncTouchCallback callback) { timeMap.put(identifier, System.currentTimeMillis()); callback.onSuccess(new AsyncTouchResult(identifier)); }
asyncTouchRes = new AsyncTouchResult(identifier);