Class ErrorMessageCache
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.cache.ErrorMessageCache
-
public class ErrorMessageCache extends Object
A thread-safe way of capturing errors for a given transaction for error-handling purposes across threads. (Basically so we can still throw meaningful errors back to API calls even though the back-end processing happens in a different thread, asynchronously, from the API call itself.)
-
-
Constructor Summary
Constructors Constructor Description ErrorMessageCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Exceptionadd(Long txId, Exception error)Add an error for a given transaction.static Exceptionget(Long txId)Retrieve any error for the given transaction.
-