public class VcsAnnotationCachedProxy extends java.lang.Object implements AnnotationProvider, CacheableAnnotationProvider
Constructor and Description |
---|
VcsAnnotationCachedProxy(AbstractVcs vcs,
AnnotationProvider provider) |
Modifier and Type | Method and Description |
---|---|
FileAnnotation |
annotate(VirtualFile file) |
FileAnnotation |
annotate(VirtualFile file,
VcsFileRevision revision) |
boolean |
isAnnotationValid(VcsFileRevision rev)
Check whether the annotation retrieval is valid (or possible) for the
particular file revision (or version in the repository).
|
void |
populateCache(VirtualFile file) |
public VcsAnnotationCachedProxy(AbstractVcs vcs, AnnotationProvider provider)
public FileAnnotation annotate(VirtualFile file) throws VcsException
annotate
in interface AnnotationProvider
VcsException
public FileAnnotation annotate(VirtualFile file, VcsFileRevision revision) throws VcsException
annotate
in interface AnnotationProvider
VcsException
public void populateCache(VirtualFile file) throws VcsException
populateCache
in interface CacheableAnnotationProvider
VcsException
public boolean isAnnotationValid(VcsFileRevision rev)
AnnotationProvider
isAnnotationValid
in interface AnnotationProvider
rev
- File revision to be checked.