Class ObjectStoreAccessor<T extends Serializable>
java.lang.Object
com.mulesoft.connectors.a2a.internal.util.ObjectStoreAccessor<T>
-
Constructor Summary
ConstructorsConstructorDescriptionObjectStoreAccessor(org.mule.runtime.api.store.ObjectStore<T> objectStore, org.mule.runtime.api.lock.LockFactory lockFactory, Function<String, String> lockKeyFunction) -
Method Summary
-
Constructor Details
-
ObjectStoreAccessor
-
-
Method Details
-
upsert
- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
get
public Optional<T> get(String id) throws org.mule.runtime.api.exception.ObjectNotFoundException, org.mule.runtime.api.store.ObjectStoreException - Throws:
org.mule.runtime.api.exception.ObjectNotFoundExceptionorg.mule.runtime.api.store.ObjectStoreException
-
remove
- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
close
public void close() throws org.mule.runtime.api.store.ObjectStoreException- Throws:
org.mule.runtime.api.store.ObjectStoreException
-