public String asString() { return getRepositoryKey().asString() + ":" + name; }
public String asString() { return getRepositoryKey().asString() + ":" + name; }
public boolean compareAndRemove(RefKey refKey, RefData oldData) throws DhtException, TimeoutException { RepositoryKey repo = refKey.getRepositoryKey(); return table.compareAndSet( // repo.asBytes(), // colRef.append(refKey.asBytes()), // oldData != RefDataUtil.NONE ? oldData.toByteArray() : null, // null); } }
public boolean compareAndRemove(RefKey refKey, RefData oldData) throws DhtException, TimeoutException { RepositoryKey repo = refKey.getRepositoryKey(); return table.compareAndSet( // repo.asBytes(), // colRef.append(refKey.asBytes()), // oldData != RefDataUtil.NONE ? oldData.toByteArray() : null, // null); } }
public boolean compareAndPut(RefKey refKey, RefData oldData, RefData newData) throws DhtException, TimeoutException { RepositoryKey repo = refKey.getRepositoryKey(); return table.compareAndSet( // repo.asBytes(), // colRef.append(refKey.asBytes()), // oldData != RefDataUtil.NONE ? oldData.toByteArray() : null, // newData.toByteArray()); }
public boolean compareAndPut(RefKey refKey, RefData oldData, RefData newData) throws DhtException, TimeoutException { RepositoryKey repo = refKey.getRepositoryKey(); return table.compareAndSet( // repo.asBytes(), // colRef.append(refKey.asBytes()), // oldData != RefDataUtil.NONE ? oldData.toByteArray() : null, // newData.toByteArray()); }