public interface DocumentLibrary
Modifier and Type | Method and Description |
---|---|
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) . |
String getName()
Document get(String key)
key
- the key or identifier for the documentDocument put(String key, Document document)
key
- the key or identifier for the documentdocument
- the document that is to be storedDocument putIfAbsent(String key, Document document)
key
- the key or identifier for the documentdocument
- the document that is to be storedDocument replace(String key, Document document)
key
- the key or identifier for the documentdocument
- the document that is to replace the existing documentDocument remove(String key)
key
- the key or identifier for the documentorg.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 documentorg.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 storedorg.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 storedorg.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 storedorg.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 documentCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.