|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.storage.dht.spi.cache.CacheOptions
public class CacheOptions
Options to configure the cache.
Constructor Summary | |
---|---|
CacheOptions()
Initialize default options. |
Method Summary | |
---|---|
CacheOptions |
fromConfig(Config rc)
Update properties by setting fields from the configuration. |
Timeout |
getTimeout()
|
int |
getWriteBufferSize()
|
CacheOptions |
setTimeout(Timeout maxWaitTime)
Set the default timeout to wait on long operations. |
CacheOptions |
setWriteBufferSize(int sizeInBytes)
Set the maximum number of outstanding bytes in a WriteBuffer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheOptions()
Method Detail |
---|
public Timeout getTimeout()
public CacheOptions setTimeout(Timeout maxWaitTime)
maxWaitTime
- new wait time.
this
public int getWriteBufferSize()
public CacheOptions setWriteBufferSize(int sizeInBytes)
WriteBuffer
.
sizeInBytes
- maximum number of bytes.
this
public CacheOptions fromConfig(Config rc)
If a property is not defined in the configuration, then it is left unmodified.
rc
- configuration to read properties from.
this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |