public class VaultKeyValueAdapter extends AbstractKeyValueAdapter
KeyValueAdapter
.Constructor and Description |
---|
VaultKeyValueAdapter(VaultOperations vaultOperations)
Create a new
VaultKeyValueAdapter given VaultOperations . |
VaultKeyValueAdapter(VaultOperations vaultOperations,
VaultConverter vaultConverter)
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(Object id,
String keyspace) |
long |
count(String keyspace) |
Object |
delete(Object id,
String keyspace) |
<T> T |
delete(Object id,
String keyspace,
Class<T> type) |
void |
deleteAllOf(String keyspace) |
<T> T |
deleteEntity(T entity,
String keyspace) |
void |
destroy() |
CloseableIterator<Map.Entry<Object,Object>> |
entries(String keyspace) |
Object |
get(Object id,
String keyspace) |
<T> T |
get(Object id,
String keyspace,
Class<T> type) |
Iterable<?> |
getAllOf(String keyspace) |
VaultConverter |
getConverter() |
VaultOperations |
getVaultOperations() |
Object |
put(Object id,
Object item,
String keyspace) |
count, find, find, getQueryEngine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
entries, exists, getAllOf
public VaultKeyValueAdapter(VaultOperations vaultOperations)
VaultKeyValueAdapter
given VaultOperations
.vaultOperations
- must not be null.public VaultKeyValueAdapter(VaultOperations vaultOperations, VaultConverter vaultConverter)
vaultOperations
- must not be null.vaultConverter
- must not be null.@Nullable public <T> T get(Object id, String keyspace, Class<T> type)
get
in interface KeyValueAdapter
get
in class AbstractKeyValueAdapter
@Nullable public <T> T delete(Object id, String keyspace, Class<T> type)
delete
in interface KeyValueAdapter
delete
in class AbstractKeyValueAdapter
public <T> T deleteEntity(T entity, String keyspace)
public CloseableIterator<Map.Entry<Object,Object>> entries(String keyspace)
public void deleteAllOf(String keyspace)
public void clear()
public long count(String keyspace)
public VaultConverter getConverter()
public VaultOperations getVaultOperations()
Copyright © 2016–2022 Pivotal Software, Inc.. All rights reserved.