MCPcopy Create free account

hub / github.com/LegacyLands/legacy-lands-library / functions

Functions2,130 in github.com/LegacyLands/legacy-lands-library

↓ 11 callersMethodcreateTestService
Create a new LegacyPlayerDataService with a unique name for testing. @param testName the test name to create a unique service identifier @return new
player/src/main/java/net/legacy/library/player/test/TestConnectionResource.java:98
↓ 11 callersMethodincrementSuccess
Increments the success count and returns the new value. @return the new success count
foundation/src/main/java/net/legacy/library/foundation/test/TestExecutionContext.java:111
↓ 11 callersMethodprocessAnnotations
{@inheritDoc} @param basePackage {@inheritDoc} @param classLoader {@inheritDoc} @param fromFairyIoCSingleton {@inheritDoc}
annotation/src/main/java/net/legacy/library/annotation/service/AnnotationProcessingService.java:44
↓ 11 callersMethodregisterClassInterceptorIfEnabled
(Class<?> targetClass, MethodInterceptor interceptor)
aop/src/main/java/net/legacy/library/aop/service/AOPService.java:327
↓ 11 callersMethodregisterManagedInterceptor
(MethodInterceptor interceptor)
aop/src/main/java/net/legacy/library/aop/service/AOPService.java:318
↓ 11 callersMethodresetCounters
Resets all counters to zero.
annotation/src/main/java/net/legacy/library/annotation/test/TestableAnnotationProcessor.java:80
↓ 11 callersMethodschedule
Schedule a one-time {@link Runnable} task with a specified delay in ticks. @param task the task to be executed @param delayTicks the delay in t
commons/src/main/java/net/legacy/library/commons/task/TaskInterface.java:351
↓ 10 callersMethodcreateTestService
Creates a test multi-level cache service.
cache/src/main/java/net/legacy/library/cache/test/MultiLevelCacheTest.java:42
↓ 10 callersMethodenableAll
()
aop/src/main/java/net/legacy/library/aop/config/AOPModuleConfiguration.java:33
↓ 10 callersMethodget
Gets an interceptor instance by its class. @param interceptorClass the interceptor class @param <T> the interceptor type @return the int
aop/src/main/java/net/legacy/library/aop/registry/InterceptorRegistry.java:47
↓ 10 callersMethodnotEmpty
Checks if the string is not null and not empty (""). @param inputString the string to check @return true if the string is not null and not empty, fal
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:150
↓ 10 callersMethodput
(String key, String value)
cache/src/main/java/net/legacy/library/cache/test/AbstractCacheServiceTest.java:363
↓ 10 callersMethodsetStatus
Sets the transaction status. @param status the new transaction status
aop/src/main/java/net/legacy/library/aop/transaction/TransactionContext.java:145
↓ 9 callersMethodaddRelationship
Adds a relationship between this entity and another entity. @param relationshipType the type of relationship @param targetEntityUuid the UUID of the
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:206
↓ 9 callersMethodexecute
Executes a function with lock protection. @param getLockFunction the function to obtain the lock @param function the function to execute under
cache/src/main/java/net/legacy/library/cache/service/LockableInterface.java:39
↓ 9 callersMethodgetActionName
Gets the action name associated with this task. <p>This serves as a unique identifier or categorization for the specific type of task being processed
player/src/main/java/net/legacy/library/player/task/redis/RStreamAccepterInterface.java:36
↓ 9 callersMethodgetEntityStreamKey
Generates a Redis stream key for entity-related operations. @param service the entity data service @return the generated Redis stream key
player/src/main/java/net/legacy/library/player/util/EntityRKeyUtil.java:52
↓ 9 callersMethodgetFromL1Cache
Retrieves the {@link LegacyEntityData} from the first-level (L1) cache. @param uuid the unique identifier of the entity @return an {@link Optional} c
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:267
↓ 9 callersMethodgetProcessedCount
Gets the total number of processed classes. @return the count of processed classes
annotation/src/main/java/net/legacy/library/annotation/test/TestResultRegistry.java:134
↓ 9 callersMethodgetResult
Randomly returns an object based on the probability of all current random objects. <p>This method uses a standard Pseudo-Random Number Generator (PRN
commons/src/main/java/net/legacy/library/commons/util/random/RandomGenerator.java:139
↓ 9 callersMethodgetType
Gets the participant type for classification and monitoring. @return the participant type
aop/src/main/java/net/legacy/library/aop/transaction/TransactionParticipant.java:30
↓ 9 callersMethodincrement
Increments the retry count for the specified key and returns the new count. <p>This operation must be atomic to ensure correct counting in concurrent
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounter.java:37
↓ 9 callersMethodinvokeFunction
Invokes a function defined in a script. @param script Optional script string. If provided, this script will be executed first.
script/src/main/java/net/legacy/library/script/engine/ScriptEngineInterface.java:57
↓ 9 callersMethodof
Creates a new {@link LegacyPlayerData} instance for the given player. @param player the Bukkit {@link Player} instance @return a new {@link LegacyPla
player/src/main/java/net/legacy/library/player/model/LegacyPlayerData.java:60
↓ 9 callersMethodput
(@NotNull String key, @NotNull String value)
cache/src/main/java/net/legacy/library/cache/test/CacheImplementationsTest.java:406
↓ 9 callersMethodwithPolicy
Creates a failure handler with a custom retry policy and compensation action. <p>This factory method allows full customization of both retry behavior
player/src/main/java/net/legacy/library/player/task/redis/resilience/FailureHandler.java:86
↓ 8 callersMethodcancel
Cancels only the scheduled task without shutting down the executor service. <p>This method is safe to use with shared schedulers as it does not affec
commons/src/main/java/net/legacy/library/commons/task/VirtualThreadScheduledFuture.java:70
↓ 8 callersMethodcreateCaffeineCache
Creates a {@link CaffeineCacheService} with custom configuration. @param cache the Caffeine cache @param <K> the cache key type @param <V> the ca
cache/src/main/java/net/legacy/library/cache/factory/CacheServiceFactory.java:54
↓ 8 callersMethodexecuteTestClass
Execute all test methods in a test class
player/src/main/java/net/legacy/library/player/test/PlayerTestRunner.java:120
↓ 8 callersMethodgetL1Cache
Retrieves the first-level (L1) cache service. @return the {@link CacheServiceInterface} used for the first-level cache (L1) @throws IllegalStateExcep
player/src/main/java/net/legacy/library/player/service/LegacyPlayerDataService.java:214
↓ 8 callersMethodgetLock
()
cache/src/main/java/net/legacy/library/cache/test/MultiLevelCacheTest.java:338
↓ 8 callersMethodgetType
Gets the type of this retry counter. <p>This method helps identify the implementation strategy being used, which can be useful for monitoring, debugg
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounter.java:93
↓ 8 callersMethodgetWithType
Retrieves a value from the Redis cache or computes it if not found, without using a lock. <p>This method will first attempt to retrieve the value fro
cache/src/main/java/net/legacy/library/cache/service/redis/RedisCacheServiceInterface.java:41
↓ 7 callersMethodaccept
{@inheritDoc} @param rStream {@inheritDoc} @param streamMessageId {@inheritDoc} @param legacyEntityDataService {@inheritDoc}
player/src/main/java/net/legacy/library/player/task/redis/resilience/ResilientEntityRStreamAccepter.java:129
↓ 7 callersMethodack
Acknowledges the task after it has been successfully processed. <p>This method removes the task from the Redis stream, indicating that it has been ha
player/src/main/java/net/legacy/library/player/task/redis/RStreamAccepterInterface.java:101
↓ 7 callersMethodaddAttribute
Adds an attribute to the current trace. @param key the attribute key @param value the attribute value
aop/src/main/java/net/legacy/library/aop/tracing/TraceService.java:79
↓ 7 callersMethodbuildKey
Builds the full Redis key by prepending the configured prefix. @param key the base key @return the full Redis key with prefix
player/src/main/java/net/legacy/library/player/task/redis/resilience/DistributedRetryCounter.java:228
↓ 7 callersMethoddoSecurityCheck
Performs security check for randomization. @throws IllegalArgumentException if there are no objects to randomize or if total probability is 0
commons/src/main/java/net/legacy/library/commons/util/random/RandomGenerator.java:119
↓ 7 callersMethodgetFailureCount
Gets the total number of failed method invocations. @return the failure count
aop/src/main/java/net/legacy/library/aop/model/MethodMetrics.java:94
↓ 7 callersMethodgetMethodName
Gets the method name for transaction identification. @param context the aspect context @return the method name
aop/src/main/java/net/legacy/library/aop/aspect/DistributedTransactionAspect.java:309
↓ 7 callersMethodgetMongoConfig
Get or create MongoDB connection configuration for tests. @return configured MongoDBConnectionConfig instance
player/src/main/java/net/legacy/library/player/test/TestConnectionResource.java:44
↓ 7 callersMethodgetPrincipal
Gets the currently authenticated principal. @return the principal, or null if not authenticated
aop/src/main/java/net/legacy/library/aop/security/SecurityProvider.java:28
↓ 7 callersMethodgetProcessedCount
Gets the number of classes processed. @return the processed count
annotation/src/main/java/net/legacy/library/annotation/test/TestableAnnotationProcessor.java:37
↓ 7 callersMethodgetRedisConfig
Get or create Redis configuration for tests. @return configured Redis Config instance
player/src/main/java/net/legacy/library/player/test/TestConnectionResource.java:66
↓ 7 callersMethodgetTimeout
()
aop/src/main/java/net/legacy/library/aop/test/AOPDynamicConfigTest.java:266
↓ 7 callersMethodinject
{@inheritDoc} <p>Injects {@link VarHandle} instances into static fields of the given class that are annotated with {@link VarHandleAutoInjection}. Th
commons/src/main/java/net/legacy/library/commons/injector/VarHandleReflectionInjector.java:70
↓ 7 callersMethodisExpired
Checks if the cache item has expired. @return true if the item is expired, false otherwise
cache/src/main/java/net/legacy/library/cache/model/CacheItem.java:39
↓ 7 callersMethodlogMessage
(Logged.LogLevel level, String format, Object... args)
aop/src/main/java/net/legacy/library/aop/aspect/LoggingAspect.java:142
↓ 7 callersMethodlogTestStart
Logs a test start message. @param moduleName the name of the module being tested @param testName the name of the test being started
foundation/src/main/java/net/legacy/library/foundation/util/TestLogger.java:34
↓ 7 callersMethodrequireNonNull
Ensures that the object is not null, throws {@link NullPointerException} if it is null. @param value object to check @param message exception messa
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:50
↓ 7 callersMethodresetCounters
Resets all counters for fresh test execution.
aop/src/main/java/net/legacy/library/aop/test/AOPRetryTest.java:840
↓ 6 callersMethodclose
Closes any resources associated with this retry counter. <p>Implementations should release any connections, clear caches, and perform necessary clean
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounter.java:101
↓ 6 callersMethodcomplete
Completes the trace with the specified status. @param status the completion status
aop/src/main/java/net/legacy/library/aop/tracing/TraceContext.java:117
↓ 6 callersMethodcreateLogEntry
Creates a new transaction log entry with the given parameters. @param transactionId the transaction ID @param logType the log type @param messa
aop/src/main/java/net/legacy/library/aop/transaction/InMemoryTransactionLogStore.java:176
↓ 6 callersMethodexecuteModuleTestRunner
Executes module tests with standardized logging and error handling. <p>This method provides a convenient way to execute test runners that extend {@li
foundation/src/main/java/net/legacy/library/foundation/test/TestExecutionUtil.java:32
↓ 6 callersMethodexecuteTestClass
Execute all test methods in a test class using reflection.
script/src/main/java/net/legacy/library/script/test/ScriptTestRunner.java:123
↓ 6 callersMethodexists
Checks if a retry counter exists for the specified key. <p>This can be useful for distinguishing between a counter that has been set to 0 and a count
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounter.java:83
↓ 6 callersMethodgetCacheLevel
Retrieves the cache level object (wrapped in an {@link Optional}) by the given level identifier. @param level the identifier of the level to look up
cache/src/main/java/net/legacy/library/cache/service/multi/FlexibleMultiLevelCacheService.java:42
↓ 6 callersMethodgetCacheLevelElseThrow
Retrieves the cache level object by the given level identifier, or throws an exception if not found. <p>This method attempts to retrieve a {@link Tie
cache/src/main/java/net/legacy/library/cache/service/multi/FlexibleMultiLevelCacheService.java:62
↓ 6 callersMethodgetFinallyAfterCount
Gets the number of finally after method invocations. @return the finally after count
annotation/src/main/java/net/legacy/library/annotation/test/TestableAnnotationProcessor.java:73
↓ 6 callersMethodgetFromL2Cache
Retrieves the {@link LegacyEntityData} from the second-level (L2) cache. @param uuid the unique identifier of the entity @return an {@link Optional}
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:289
↓ 6 callersMethodgetGlobalVariable
Gets the value of a global variable from the engine's scope. @param name The name of the global variable @return The value of the global variable
script/src/main/java/net/legacy/library/script/engine/ScriptEngineInterface.java:200
↓ 6 callersMethodgetL2Cache
Retrieves the second-level (L2) cache service using Redis. @return the {@link RedisCacheServiceInterface} used for the second-level cache (L2) @throw
player/src/main/java/net/legacy/library/player/service/LegacyPlayerDataService.java:240
↓ 6 callersMethodgetLegacyPlayerData
Retrieves the {@link LegacyPlayerData} for a given player UUID using the multi-level cache and database. <p>This method queries the L1 cache first, t
player/src/main/java/net/legacy/library/player/service/LegacyPlayerDataService.java:302
↓ 6 callersMethodgetMCScheduler
Provides the {@link MCScheduler} instance used for scheduling tasks. <p>Only valid when the useVirtualThread method returns {@code false}. <p>By def
player/src/main/java/net/legacy/library/player/task/redis/RStreamAccepterInterface.java:127
↓ 6 callersMethodgetNormalizedValue
()
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:229
↓ 6 callersMethodgetVirtualThreadPerTaskExecutor
Provides an {@link ExecutorService} that uses a virtual thread per task execution model. <p>Only valid when the useVirtualThread method returns {@cod
player/src/main/java/net/legacy/library/player/task/redis/RStreamAccepterInterface.java:145
↓ 6 callersMethodinvalid
(String errorMessage)
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:217
↓ 6 callersMethodisRecordLimit
Determines whether to limit task processing to prevent duplicates within a single server or connection. <p>If this method returns {@code true}, the t
player/src/main/java/net/legacy/library/player/task/redis/RStreamAccepterInterface.java:56
↓ 6 callersMethodlogStatistics
Logs test execution statistics. @param moduleName the name of the module being tested @param totalTests the total number of tests @param successC
foundation/src/main/java/net/legacy/library/foundation/util/TestLogger.java:122
↓ 6 callersMethodlogTestComplete
Logs a test completion message. @param moduleName the name of the module being tested @param testName the name of the test that completed @param du
foundation/src/main/java/net/legacy/library/foundation/util/TestLogger.java:46
↓ 6 callersMethodof
Factory method to create a new {@link EntityDataPersistenceTask}. @param lockSettings the settings for lock acquisition @param service the {@lin
player/src/main/java/net/legacy/library/player/task/EntityDataPersistenceTask.java:51
↓ 6 callersMethodof
Factory method to create a new {@link L1ToL2PlayerDataSyncTask} without specifying a UUID. <p>This variant synchronizes all player data in the L1 cac
player/src/main/java/net/legacy/library/player/task/L1ToL2PlayerDataSyncTask.java:43
↓ 6 callersMethodof
Creates a new {@link LegacyEntityDataService}. @param name the unique name of the service @param mongoDBConnectionConfig the M
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:157
↓ 6 callersMethodprocessDataAsync
(String input)
aop/src/main/java/net/legacy/library/aop/test/AOPAsyncTest.java:472
↓ 6 callersMethodregister
Registers an interceptor instance. @param interceptor the interceptor to register
aop/src/main/java/net/legacy/library/aop/registry/InterceptorRegistry.java:36
↓ 6 callersMethodreset
Resets the retry count for the specified key. <p>This operation removes the counter entirely, so subsequent calls to {@link #get(String)} will return
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounter.java:72
↓ 6 callersMethodresolveUrlsForPackages
Resolves URLs for the given base packages and class loaders. This effectively gets all URLs on the classpath that are within the specified packages.
annotation/src/main/java/net/legacy/library/annotation/util/ReflectUtil.java:30
↓ 6 callersMethodscheduleWithFixedDelayWithVirtualThread
Schedules a recurring {@link Runnable} task to be executed in a virtual thread with a fixed delay between the end of the execution of one task and the
commons/src/main/java/net/legacy/library/commons/task/TaskInterface.java:335
↓ 6 callersMethodsetCurrentContext
Sets the current security context. @param principal the principal @param roles the roles @param permissions the permissions
aop/src/main/java/net/legacy/library/aop/security/DefaultSecurityProvider.java:104
↓ 6 callersMethodshutdown
Shuts down the Redis client connection gracefully. <p>This method is responsible for closing the connection to the Redis server and releasing any res
cache/src/main/java/net/legacy/library/cache/service/redis/RedisCacheServiceInterface.java:70
↓ 6 callersMethodupdateVersionAndTimestamp
Updates the version and last modified time of this entity. This method should be called whenever the entity is modified.
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:127
↓ 6 callersMethoduseVirtualThread
Determines whether to use virtual threads. <p>Defaults to {@code true}.If set to {@code false}, the task will be directly scheduled using the Bukkit
player/src/main/java/net/legacy/library/player/task/redis/RStreamAccepterInterface.java:113
↓ 6 callersMethodwrap
Creates a resilient wrapper with default failure handling. <p>Uses {@link FailureHandler#RETRY_ALWAYS} which implements a standard retry policy with
player/src/main/java/net/legacy/library/player/task/redis/resilience/ResilientRStreamAccepter.java:47
↓ 6 callersMethodwrap
Creates a resilient wrapper with default failure handling. <p>Uses {@link FailureHandler#RETRY_ALWAYS} which implements a standard retry policy with
player/src/main/java/net/legacy/library/player/task/redis/resilience/ResilientEntityRStreamAccepter.java:50
↓ 5 callersFunctionany_string
(val: &str)
experimental/third-party-schedulers/task-scheduler-rust/tests/common/utils.rs:40
↓ 5 callersMethodapplyFunctionWithoutLock
Applies a function to the underlying cache of a specific level (without lock). <p>This method looks up the {@link TieredCacheLevel} by the provided l
cache/src/main/java/net/legacy/library/cache/service/multi/FlexibleMultiLevelCacheService.java:79
↓ 5 callersMethodcomposite
Creates a composite compensation action that executes multiple actions in sequence. <p>The composite action will attempt to execute all provided acti
player/src/main/java/net/legacy/library/player/task/redis/resilience/CompensationAction.java:74
↓ 5 callersMethodcontext
()
aop/src/main/java/net/legacy/library/aop/test/ClassLoaderIsolationTest.java:104
↓ 5 callersMethodcreateDistributed
Creates a distributed retry counter with the default key prefix. @param redissonClient the Redis client to use @return a new {@link DistributedRetryC
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounterFactory.java:84
↓ 5 callersMethodcreateDistributedTransactionAspect
()
aop/src/main/java/net/legacy/library/aop/test/AOPDistributedTransactionTest.java:43
↓ 5 callersMethoddefaultInstance
Returns a default TaskInterface instance with standard implementations. <p>This is useful when you just need to access the utility methods without im
commons/src/main/java/net/legacy/library/commons/task/TaskInterface.java:60
↓ 5 callersMethodexecuteCompiled
{@inheritDoc} @param compiledScript {@inheritDoc} @param scriptScope {@inheritDoc} @return {@inheritDoc} @throws ScriptException {@inheritDoc}
script/src/main/java/net/legacy/library/script/engine/groovy/GroovyEngine.java:126
↓ 5 callersMethodexecuteTestClass
Executes all test methods in a test class.
cache/src/main/java/net/legacy/library/cache/test/CacheTestRunner.java:119
↓ 5 callersMethodexecuteWithLock
(AspectContext context, MethodInvocation invocation, AsyncSafe asyncSafe)
aop/src/main/java/net/legacy/library/aop/aspect/AsyncSafeAspect.java:197
↓ 5 callersMethodget
(String key, Class<T> type)
aop/src/main/java/net/legacy/library/aop/config/DefaultConfigurationService.java:96
↓ 5 callersMethodgetAfterCount
Gets the number of after method invocations. @return the after count
annotation/src/main/java/net/legacy/library/annotation/test/TestableAnnotationProcessor.java:55
↓ 5 callersMethodgetBeforeCount
Gets the number of before method invocations. @return the before count
annotation/src/main/java/net/legacy/library/annotation/test/TestableAnnotationProcessor.java:46
↓ 5 callersMethodgetFromL1Cache
Retrieves the {@link LegacyPlayerData} from the first-level (L1) cache. @param uuid the unique identifier of the player @return an {@link Optional} c
player/src/main/java/net/legacy/library/player/service/LegacyPlayerDataService.java:225
↓ 5 callersMethodgetInstance
Gets the singleton instance of the registry @return the registry instance
aop/src/main/java/net/legacy/library/aop/custom/CustomExecutorRegistry.java:41
← previousnext →101–200 of 2,130, ranked by callers