Package | Description |
---|---|
org.glassfish.ha.store.api | |
org.glassfish.ha.store.impl | |
org.glassfish.ha.store.spi |
Modifier and Type | Method and Description |
---|---|
void |
BackingStore.close()
Typically called during shutdown of the process.
|
void |
BackingStoreTransaction.commit() |
<K extends Serializable,V extends Serializable> |
BackingStoreFactory.createBackingStore(BackingStoreConfiguration<K,V> conf)
This method is called to create a BackingStore.
|
void |
BackingStore.destroy()
Called when the store is no longer needed.
|
protected void |
BackingStore.initialize(BackingStoreConfiguration<K,V> conf) |
abstract V |
BackingStore.load(K key,
String version)
Load and return the data for the given id.
|
abstract void |
BackingStore.remove(K key)
Remove the association for the id.
|
int |
BackingStore.removeExpired()
Remove expired entries
|
int |
BackingStore.removeExpired(long idleForMillis) |
abstract String |
BackingStore.save(K key,
V value,
boolean isNew)
Save the value whose key is id.
|
abstract int |
BackingStore.size()
Get the current size of the store
|
void |
BackingStore.updateTimestamp(K key,
long time)
TODO: BEGIN: REMOVE after shoal integration
|
String |
BackingStore.updateTimestamp(K key,
String version,
Long accessTime)
Recomended way is to just do a save(k, v)
|
Modifier and Type | Method and Description |
---|---|
<K extends Serializable,V extends Serializable> |
NoOpBackingStoreFactory.createBackingStore(BackingStoreConfiguration<K,V> conf) |
void |
NoOpBackingStore.destroy() |
protected void |
NoOpBackingStore.initialize(BackingStoreConfiguration<K,V> conf) |
V |
NoOpBackingStore.load(K key,
String version) |
void |
NoOpBackingStore.remove(K key) |
int |
NoOpBackingStore.removeExpired() |
String |
NoOpBackingStore.save(K key,
V value,
boolean isNew) |
int |
NoOpBackingStore.size() |
String |
NoOpBackingStore.updateTimestamp(K key,
String version,
Long accessTime) |
Modifier and Type | Method and Description |
---|---|
static BackingStoreFactory |
BackingStoreFactoryRegistry.getFactoryInstance(String type)
Return an instance of BackingStoreFactory for the
specified type.
|
Copyright © 2016 Oracle Corporation. All rights reserved.