Class ObjectStoreImpl
java.lang.Object
org.aksw.commons.store.object.key.impl.ObjectStoreImpl
- All Implemented Interfaces:
AutoCloseable,ObjectStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AsyncClaimingCache<org.aksw.commons.path.core.Path<String>,ObjectResource> protected AsyncClaimingCache<org.aksw.commons.path.core.Path<String>,ObjectInfo> protected ObjectSerializerprotected TxnHandlerImplprotected TxnMgr -
Constructor Summary
ConstructorsConstructorDescriptionObjectStoreImpl(TxnMgr txnMgr, TxnHandlerImpl txnHandler, ObjectSerializer objectSerializer, AsyncClaimingCache<org.aksw.commons.path.core.Path<String>, ObjectInfo> contentCache, AsyncClaimingCache<org.aksw.commons.path.core.Path<String>, ObjectResource> accessorCache) -
Method Summary
Modifier and TypeMethodDescriptionorg.aksw.commons.util.ref.RefFuture<ObjectInfo>Asynchronously attempt to claim to the given resource.voidclose()static ObjectStorecreate(Path rootPath, ObjectSerializer objectSerializer) fetchRecencyStatus(org.aksw.commons.path.core.Path<String> key) protected static voidsave(TxnMgr txnMgr, ObjectSerializer objectSerializer, TxnHandlerImpl txnHandler, org.aksw.commons.path.core.Path<String> key, ObjectInfo v)
-
Field Details
-
txnMgr
-
txnHandler
-
objectSerializer
-
contentCache
-
accessorCache
-
-
Constructor Details
-
ObjectStoreImpl
public ObjectStoreImpl(TxnMgr txnMgr, TxnHandlerImpl txnHandler, ObjectSerializer objectSerializer, AsyncClaimingCache<org.aksw.commons.path.core.Path<String>, ObjectInfo> contentCache, AsyncClaimingCache<org.aksw.commons.path.core.Path<String>, ObjectResource> accessorCache)
-
-
Method Details
-
fetchRecencyStatus
- Specified by:
fetchRecencyStatusin interfaceObjectStore
-
create
-
save
protected static void save(TxnMgr txnMgr, ObjectSerializer objectSerializer, TxnHandlerImpl txnHandler, org.aksw.commons.path.core.Path<String> key, ObjectInfo v) throws IOException - Throws:
IOException
-
claim
public org.aksw.commons.util.ref.RefFuture<ObjectInfo> claim(org.aksw.commons.path.core.Path<String> key) Description copied from interface:ObjectStoreAsynchronously attempt to claim to the given resource.- Specified by:
claimin interfaceObjectStore- Returns:
-
getConnection
- Specified by:
getConnectionin interfaceObjectStore
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-