|
ModeShape Distribution 3.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.schematic.internal.InMemoryDocumentLibrary
public class InMemoryDocumentLibrary
| Nested Class Summary | |
|---|---|
protected static class |
InMemoryDocumentLibrary.ImmediateFuture
|
| Constructor Summary | |
|---|---|
InMemoryDocumentLibrary(String name)
|
|
| 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 DocumentLibrary.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 DocumentLibrary.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 DocumentLibrary.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 DocumentLibrary.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 DocumentLibrary.replace(String, Document). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryDocumentLibrary(String name)
| Method Detail |
|---|
public String getName()
DocumentLibrary
getName in interface DocumentLibrarypublic Document get(String key)
DocumentLibrary
get in interface DocumentLibrarykey - the key or identifier for the document
public Document put(String key,
Document document)
DocumentLibrary
put in interface DocumentLibrarykey - the key or identifier for the documentdocument - the document that is to be stored
public Document putIfAbsent(String key,
Document document)
DocumentLibrary
putIfAbsent in interface DocumentLibrarykey - the key or identifier for the documentdocument - the document that is to be stored
public Document replace(String key,
Document document)
DocumentLibrary
replace in interface DocumentLibrarykey - the key or identifier for the documentdocument - the document that is to replace the existing document
public Document remove(String key)
DocumentLibrary
remove in interface DocumentLibrarykey - the key or identifier for the document
public org.infinispan.util.concurrent.NotifyingFuture<Document> getAsync(String key)
DocumentLibraryDocumentLibrary.get(String). This method does not block on remote calls, even if the library
cache mode is synchronous.
getAsync in interface DocumentLibrarykey - the key or identifier for the document
public org.infinispan.util.concurrent.NotifyingFuture<Document> putAsync(String key,
Document document)
DocumentLibraryDocumentLibrary.put(String, Document). This method does not block on remote calls, even if the
library cache mode is synchronous.
putAsync in interface DocumentLibrarykey - the key or identifier for the documentdocument - the document that is to be stored
public org.infinispan.util.concurrent.NotifyingFuture<Document> putIfAbsentAsync(String key,
Document document)
DocumentLibraryDocumentLibrary.putIfAbsent(String, Document). This method does not block on remote calls, even
if the library cache mode is synchronous.
putIfAbsentAsync in interface DocumentLibrarykey - the key or identifier for the documentdocument - the document that is to be stored
public org.infinispan.util.concurrent.NotifyingFuture<Document> replaceAsync(String key,
Document document)
DocumentLibraryDocumentLibrary.replace(String, Document). This method does not block on remote calls, even if
the library cache mode is synchronous.
replaceAsync in interface DocumentLibrarykey - the key or identifier for the documentdocument - the document that is to be stored
public org.infinispan.util.concurrent.NotifyingFuture<Document> removeAsync(String key)
DocumentLibraryDocumentLibrary.remove(String). This method does not block on remote calls, even if the library
cache mode is synchronous.
removeAsync in interface DocumentLibrarykey - 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 | |||||||||