-
- All Implemented Interfaces:
-
com.appsflyer.internal.components.monitorsdk.exmanager.ExceptionManageCache
@WorkerThread() public final class ExceptionManageCacheImpl implements ExceptionManageCache
-
-
Constructor Summary
Constructors Constructor Description ExceptionManageCacheImpl(ContextProvider contextProvider)
-
Method Summary
Modifier and Type Method Description String
storeNewException(Throwable throwable, String message)
This method is using Synchronized block to prevent multiple threads that trying to write the same exception at the same time and loosing data (wrong counter) List<ExceptionInfo>
getStoredExceptions()
This method is using Synchronized block to prevent getting not up do date data for example trying reading while another thread is writing <ERROR CLASS>
getStoredExceptionsSize()
Return the amount of the stored exception of the current SDK version Boolean
deleteAllStoredExceptions()
Delete all the stored exception from the memory of all the SDK versions Boolean
deleteAllStoredExceptionsIgnoreFolders(String folders)
This method is using Synchronized block to make sure all the required files are deleted for example trying deleting while another thread is writing Unit
deleteAllStoredExceptionsIgnoreFolders(Integer from, Integer to)
Delete all the stored exception from the memory of all the SDK versions except of SDK versions range from, to that passed as an arguments for this method. -
-
Constructor Detail
-
ExceptionManageCacheImpl
ExceptionManageCacheImpl(ContextProvider contextProvider)
-
-
Method Detail
-
storeNewException
String storeNewException(Throwable throwable, String message)
This method is using Synchronized block to prevent multiple threads that trying to write the same exception at the same time and loosing data (wrong counter)
- Parameters:
throwable
- {@link Throwable} to storemessage
- {@link String} described the exception
-
getStoredExceptions
List<ExceptionInfo> getStoredExceptions()
This method is using Synchronized block to prevent getting not up do date data for example trying reading while another thread is writing
-
getStoredExceptionsSize
<ERROR CLASS> getStoredExceptionsSize()
Return the amount of the stored exception of the current SDK version
-
deleteAllStoredExceptions
Boolean deleteAllStoredExceptions()
Delete all the stored exception from the memory of all the SDK versions
-
deleteAllStoredExceptionsIgnoreFolders
Boolean deleteAllStoredExceptionsIgnoreFolders(String folders)
This method is using Synchronized block to make sure all the required files are deleted for example trying deleting while another thread is writing
- Parameters:
folders
- list of SDK version that their exceptions should not be deleted
-
deleteAllStoredExceptionsIgnoreFolders
Unit deleteAllStoredExceptionsIgnoreFolders(Integer from, Integer to)
Delete all the stored exception from the memory of all the SDK versions except of SDK versions range from, to that passed as an arguments for this method. For example, calling this method with
"600009000, 600009999"
as an argument will delete all exceptions except of exceptions from the range 6.9.0-6.9.999- Parameters:
from
-lower bound of a range, int representation if SDK version String
to
-upper bound of a range, int representation if SDK version String
-
-
-
-