|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RefTable
Tracks all branches and tags for a repository.
Each repository has one or more references, pointing to the most recent revision on that branch, or to the tagged revision if its a tag.
Method Summary | |
---|---|
boolean |
compareAndPut(RefKey refKey,
GitStore.RefData oldData,
GitStore.RefData newData)
Compare a reference, and put if it matches. |
boolean |
compareAndRemove(RefKey refKey,
GitStore.RefData oldData)
Compare a reference, and delete if it matches. |
java.util.Map<RefKey,GitStore.RefData> |
getAll(Context options,
RepositoryKey repository)
Read all known references in the repository. |
Method Detail |
---|
java.util.Map<RefKey,GitStore.RefData> getAll(Context options, RepositoryKey repository) throws DhtException, java.util.concurrent.TimeoutException
options
- options to control reading.repository
- the repository to load the references from.
DhtException
- the database cannot be read.
java.util.concurrent.TimeoutException
- the operation to read the database timed out.boolean compareAndRemove(RefKey refKey, GitStore.RefData oldData) throws DhtException, java.util.concurrent.TimeoutException
refKey
- reference to delete.oldData
- the old data for the reference. The delete only occurs if the
value is still equal to oldData
.
oldData
.
DhtException
- the database cannot be updated.
java.util.concurrent.TimeoutException
- the operation to modify the database timed out.boolean compareAndPut(RefKey refKey, GitStore.RefData oldData, GitStore.RefData newData) throws DhtException, java.util.concurrent.TimeoutException
refKey
- reference to create or replace.oldData
- the old data for the reference. The put only occurs if the
value is still equal to oldData
. Use
RefDataUtil.NONE
if the reference should not exist and
is being created.newData
- new value to store.
prior
.
DhtException
- the database cannot be updated.
java.util.concurrent.TimeoutException
- the operation to modify the database timed out.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |