|
||||||||||
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.CacheService.Change
public static class CacheService.Change
A change to the cache.
Nested Class Summary | |
---|---|
static class |
CacheService.Change.Type
Operation the change describes. |
Constructor Summary | |
---|---|
CacheService.Change(CacheService.Change.Type type,
CacheKey key,
byte[] data)
Initialize a new change. |
Method Summary | |
---|---|
byte[] |
getData()
|
CacheKey |
getKey()
|
CacheService.Change.Type |
getType()
|
static CacheService.Change |
put(CacheKey key,
byte[] data)
Initialize a put operation. |
static CacheService.Change |
putIfAbsent(CacheKey key,
byte[] data)
Initialize a put operation. |
static CacheService.Change |
remove(CacheKey key)
Initialize a remove operation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheService.Change(CacheService.Change.Type type, CacheKey key, byte[] data)
type
- key
- data
- Method Detail |
---|
public static CacheService.Change put(CacheKey key, byte[] data)
key
- the key to store.data
- the value to store.
public static CacheService.Change putIfAbsent(CacheKey key, byte[] data)
key
- the key to store.data
- the value to store.
public static CacheService.Change remove(CacheKey key)
key
- the key to remove.
public CacheService.Change.Type getType()
public CacheKey getKey()
public byte[] getData()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |