jetbrains.buildServer.vcs.utils
Class VcsCache<Value extends VcsCacheItem>

java.lang.Object
  extended by jetbrains.buildServer.vcs.utils.VcsCache<Value>

public class VcsCache<Value extends VcsCacheItem>
extends java.lang.Object

Allows to cache data related to vcs root.

See Also:
VcsCacheItem

Constructor Summary
VcsCache(VcsCacheItemFactory<Value> factory)
          Creates new vcs cache instance.
 
Method Summary
 Value getItem(VcsRoot root)
          Returns data related to the specified root.
 void resetCache(VcsRoot root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsCache

public VcsCache(VcsCacheItemFactory<Value> factory)
Creates new vcs cache instance.

Parameters:
factory - factory to create new cached values.
Method Detail

getItem

public Value getItem(VcsRoot root)
Returns data related to the specified root.

Parameters:
root - specified root.
Returns:
value related to the root.

resetCache

public void resetCache(VcsRoot root)