Top Description Methods
org.eclipse.jgit.signing.ssh

public Interface CachingSigningKeyDatabase

extends SigningKeyDatabase
Known Direct Implementers
org.eclipse.jgit.internal.signing.ssh.OpenSshSigningKeyDatabase

A SigningKeyDatabase that caches data.

A signing key database may be used to check keys frequently; it may thus need to cache some data and it may need to cache data per repository. If an implementation does cache data, it is responsible itself for refreshing that cache at appropriate times. Clients can control the cache size somewhat via setCacheSize(int), although the meaning of the cache size (i.e., its unit) is left undefined here.

Since
7.1

Method Summary

Modifier and TypeMethod and Description
public void
clearCache()

Discards any cached data.

public int

Returns:

the cache size, or -1 if this database has no cache.
getCacheSize
()

Retrieves the current cache size.

public void
setCacheSize(int
the cache size, ignored if this database does not have a cache.
size
)

Sets the cache size to use.

Inherited from org.eclipse.jgit.signing.ssh.SigningKeyDatabase:
getInstanceisAllowedisRevokedsetInstance

Method Detail

clearCacheback to summary
public void clearCache()

Discards any cached data. A no-op if the database has no cache.

getCacheSizeback to summary
public int getCacheSize()

Retrieves the current cache size.

Returns:int

the cache size, or -1 if this database has no cache.

setCacheSizeback to summary
public void setCacheSize(int size)

Sets the cache size to use.

Parameters
size:int

the cache size, ignored if this database does not have a cache.

Exceptions
IllegalArgumentException:
if size < 0