|
ModeShape Distribution 3.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentLibrary
A library of JSON documents.
| Method Summary | |
|---|---|
Document |
get(String key)
Get the document with the supplied key. |
org.infinispan.util.concurrent.NotifyingFuture<Document> |
getAsync(String key)
Asynchronous version of get(String). |
String |
getName()
Get the name of this library. |
Document |
put(String key,
Document document)
Store the supplied document at the given key. |
org.infinispan.util.concurrent.NotifyingFuture<Document> |
putAsync(String key,
Document document)
Asynchronous version of put(String, Document). |
Document |
putIfAbsent(String key,
Document document)
Store the supplied document at the given key. |
org.infinispan.util.concurrent.NotifyingFuture<Document> |
putIfAbsentAsync(String key,
Document document)
Asynchronous version of putIfAbsent(String, Document). |
Document |
remove(String key)
Remove the existing document at the given key. |
org.infinispan.util.concurrent.NotifyingFuture<Document> |
removeAsync(String key)
Asynchronous version of remove(String). |
Document |
replace(String key,
Document document)
Replace the existing document at the given key with the document that is supplied. |
org.infinispan.util.concurrent.NotifyingFuture<Document> |
replaceAsync(String key,
Document document)
Asynchronous version of replace(String, Document). |
| Method Detail |
|---|
String getName()
Document get(String key)
key - the key or identifier for the document
Document put(String key,
Document document)
key - the key or identifier for the documentdocument - the document that is to be stored
Document putIfAbsent(String key,
Document document)
key - the key or identifier for the documentdocument - the document that is to be stored
Document replace(String key,
Document document)
key - the key or identifier for the documentdocument - the document that is to replace the existing document
Document remove(String key)
key - the key or identifier for the document
org.infinispan.util.concurrent.NotifyingFuture<Document> getAsync(String key)
get(String). This method does not block on remote calls, even if the library
cache mode is synchronous.
key - the key or identifier for the document
org.infinispan.util.concurrent.NotifyingFuture<Document> putAsync(String key,
Document document)
put(String, Document). This method does not block on remote calls, even if the
library cache mode is synchronous.
key - the key or identifier for the documentdocument - the document that is to be stored
org.infinispan.util.concurrent.NotifyingFuture<Document> putIfAbsentAsync(String key,
Document document)
putIfAbsent(String, Document). This method does not block on remote calls, even
if the library cache mode is synchronous.
key - the key or identifier for the documentdocument - the document that is to be stored
org.infinispan.util.concurrent.NotifyingFuture<Document> replaceAsync(String key,
Document document)
replace(String, Document). This method does not block on remote calls, even if
the library cache mode is synchronous.
key - the key or identifier for the documentdocument - the document that is to be stored
org.infinispan.util.concurrent.NotifyingFuture<Document> removeAsync(String key)
remove(String). This method does not block on remote calls, even if the library
cache mode is synchronous.
key - the key or identifier for the document
|
ModeShape Distribution 3.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||