-
- All Implemented Interfaces:
-
com.appsflyer.internal.components.exmanager.ExceptionManageCache
@WorkerThread() public class ExceptionManageCacheImpl implements ExceptionManageCache
-
-
Constructor Summary
Constructors Constructor Description ExceptionManageCacheImpl(ContextProvider contextProvider)
-
Method Summary
Modifier and Type Method Description StringstoreNewException(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 IntegergetStoredExceptionsSize()Return the amount of the stored exception of the current SDK version BooleandeleteAllStoredExceptions()Delete all the stored exception from the memory of all the SDK versions BooleandeleteAllStoredExceptionsIgnoreFolders(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 -
-
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
Integer 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
-
-
-
-