public class KetchLeaderCache extends Object
 Ketch only assigns a leader to a repository when needed. If
 get(Repository) is called for a repository that does not have a
 leader, the leader is created and added to the cache.
| Constructor and Description | 
|---|
KetchLeaderCache(KetchSystem system)
Initialize a new leader cache. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
KetchLeader | 
get(Repository repo)
Lookup the leader instance for a given repository. 
 | 
public KetchLeaderCache(KetchSystem system)
system - system configuration for the leaderspublic KetchLeader get(Repository repo) throws URISyntaxException
repo - repository to get the leader for.URISyntaxException - remote configuration contains an invalid URL.Copyright © 2020 Eclipse JGit Project. All rights reserved.