MCPcopy Create free account

hub / github.com/FranRiadigos/RepositoryCache / functions

Functions77 in github.com/FranRiadigos/RepositoryCache

↓ 12 callersMethodhashMD5
(String str)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:43
↓ 6 callersMethodgetCacheDir
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:36
↓ 6 callersMethodgetFileName
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:40
↓ 5 callersMethodbuildFile
Builds the cached file method into the disk cache. @param file The Context File @param fileName The string to store the cache method @param type
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:209
↓ 5 callersMethodexists
Returns a boolean indicating whether this file can be found on the underlying file system. @param file The file to check existence. @return true if t
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:118
↓ 3 callersMethodaddError
(String msg, Object... args)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:111
↓ 3 callersMethodcontains
Returns boolean indicating whether this file contains the content value. @param file The file to check existence. @param fileContent The content valu
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:129
↓ 3 callersMethodgetAllDataOnce
Calls on this method will be cached indefinitely, unless you evict it later. @return any retrieved data
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepository.java:30
↓ 3 callersMethodgetAnnotation
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:67
↓ 3 callersMethodgetDataById
Calls on this method with a specific id will be cached until 30 minutes each one, then expires. @param id any Id @return any retrieved data
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepository.java:40
↓ 3 callersMethodgetQualifiedMethodName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:46
↓ 3 callersMethodjoinItems
(String... pieces)
repository-cache-compiler/src/test/java/com/kuassivi/compiler/ProxyCodeTestGenerator.java:108
↓ 2 callersMethodadd
Adds the annotated method into the methods Map @param methodToInsert Method annotated @throws ProcessingException Method already exist, please use th
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:103
↓ 2 callersMethoderror
Prints an Error message @param e The element which has caused the error. Can be null @param message The error message
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:65
↓ 2 callersMethodgetElement
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:71
↓ 2 callersMethodgetExecutableType
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:75
↓ 2 callersMethodisCached
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:42
↓ 2 callersMethodisExpired
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:44
↓ 2 callersMethodpersist
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:26
↓ 2 callersMethodreadFileContent
Reads a content from a file. This is an I/O operation and this method executes in the main thread, so it is recommended to perform the operation using
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:62
↓ 1 callersMethodaddProxyMethods
(TypeSpec.Builder classBuilder)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:209
↓ 1 callersMethodclearFile
Warning: Deletes the File or the content of a directory. This is an I/O operation and this method executes in the main thread, so it is recommended to
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:144
↓ 1 callersMethoderrors
Prints multiple Error messages @param e The element which has caused the error. Can be null @param messages The error messages
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:75
↓ 1 callersMethodevict
Warning: This is an I/O operation and this method is going to be performed in a different Thread. @param proxyCache the ProxyCache object
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:125
↓ 1 callersMethodgenerateCode
Generates the proxy cache java file @param filer Filer @throws IOException Generator file exception
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:133
↓ 1 callersMethodgetCacheTime
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:38
↓ 1 callersMethodgetErrors
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:115
↓ 1 callersMethodgetFullMethodName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:58
↓ 1 callersMethodgetInstance
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:37
↓ 1 callersMethodgetLastModifiedTime
Returns the last modified time of a {@link File} @param file The file to check last modified time. @return long value for the time
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:96
↓ 1 callersMethodgetQualifiedClassName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:54
↓ 1 callersMethodgetSimpleMethodName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:42
↓ 1 callersMethodinitialize
(ProcessingEnvironment env)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:35
↓ 1 callersMethodisAccessible
Checks whether is an accessible {@link ElementType}. Accessible means: public, default or native. @return AnnotationValidator
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:62
↓ 1 callersMethodisCached
Checks whether the method is cached. @param proxyCache the ProxyCache object @return true if is cached, false otherwise
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:148
↓ 1 callersMethodisInterfaceAllowed
Checks whether is not an abstract {@link ElementType}. @return AnnotationValidator
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:96
↓ 1 callersMethodnote
Prints a Note message @param message The message Note
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:45
↓ 1 callersMethodselect
(Object cacheKey)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:32
↓ 1 callersMethodwith
(Element annotatedElement, Class<?> clazz)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:49
↓ 1 callersMethodwriteToFile
Writes a file to Disk. This is an I/O operation and this method executes in the main thread, so it is recommended to perform this operation using anot
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:40
MethodAnnotatedMethod
(Element element)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:36
MethodAnnotationValidator
(Element annotatedElement, Class<?> clazz)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:42
MethodApplicationTest
()
examples/src/androidTest/java/com/kuassivi/examples/repository_cache/ApplicationTest.java:11
MethodCacheClear
(FileManager fileManager, File fileToClear)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:252
MethodCacheWriter
(FileManager fileManager, File fileToWrite, String fileContent)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:229
MethodFileManager
()
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:31
MethodMyRepositoryImpl
Initialize dependencies @param context The application Context
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepositoryImpl.java:48
MethodProcessingException
(Element element, String msg, Object... args)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProcessingException.java:28
MethodProxyClassGenerator
Supply the Qualified ClassName for the Proxy @param elementUtils Element utils object @param qualifiedClassName ClassName of the Annotated Class
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:85
MethodRepositoryCacheManager
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:33
Methodaddition_isCorrect
()
examples/src/test/java/com/kuassivi/examples/repositorycache/ExampleUnitTest.java:12
Methodevict
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:30
MethodevictAll
Warning: This is an I/O operation and this method is going to be performed in a different Thread. @param directory the File directory to clear on dis
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:138
MethodgeneratedProxyWith1EmptyMethod_isCorrect
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:21
MethodgeneratedProxyWith2MethodsWithSameName_fail
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:88
MethodgeneratedProxyWith2Methods_isCorrect
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:52
MethodgeneratedProxyWith8Methods_isCorrect
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:112
MethodgetAllDataOnce
Demonstrates how to distinguish between local or cloud data source with the cache strategy. You can store a cache indefinitely if you don't provide an
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepositoryImpl.java:63
MethodgetAllDataOnce
()
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyCloudData.java:24
MethodgetAllDataOnce
()
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyLocalData.java:24
MethodgetContent
Warning: This is an I/O operation and this method must to be performed in a different Thread. @param proxyCache the ProxyCache object @return A valid
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:194
MethodgetContent
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:34
MethodgetDataById
Demonstrates how to distinguish between local or cloud data source with the cache strategy. The RepositoryCache allows you to store different caches d
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepositoryImpl.java:109
MethodgetDataById
(int id)
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyCloudData.java:29
MethodgetDataById
(int id)
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyLocalData.java:29
MethodgetElement
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProcessingException.java:33
MethodgetSupportedAnnotationTypes
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:60
MethodgetSupportedSourceVersion
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:65
MethodhashCode
Returns a hash code based on the contents of the given array. If the array contains other arrays as its elements, the hash code is based on their iden
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:77
Methodinit
(ProcessingEnvironment processingEnv)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:51
MethodisAbstractAllowed
Checks whether is an abstract {@link ElementType}. @return AnnotationValidator
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:77
MethodisExpired
Warning: This is an I/O operation and this method must to be performed in a different Thread. @param proxyCache the ProxyCache object @return true if
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:166
Methodpersist
Warning: This is an I/O operation and this method is going to be performed in a different Thread. @param proxyCache the ProxyCache object
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:101
Methodprocess
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:70
Methodrun
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:235
Methodrun
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:257
MethodsetLastModifiedTime
Updates the last modified time of a {@link File} @param file The file to update its last modified time. @param time The time to update in the file. @
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:108