MCPcopy Create free account

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

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

↓ 461 callersMethodgetMessage
()
aop/src/main/java/net/legacy/library/aop/transaction/TransactionLogStore.java:106
↓ 444 callersMethodlogInfo
Logs general test information. @param moduleName the name of the module being tested @param message the information message @param replace form
foundation/src/main/java/net/legacy/library/foundation/util/TestLogger.java:95
↓ 382 callersMethodlogFailure
Logs a test failure message. @param moduleName the name of the module being tested @param message the failure message @param replace format arg
foundation/src/main/java/net/legacy/library/foundation/util/TestLogger.java:70
↓ 260 callersMethodget
Gets a configuration value by key. @param key the configuration key @param type the target type @param <T> the type parameter @return the configura
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:27
↓ 207 callersMethodequals
Checks if two objects are equal using {@link Objects#equals(Object, Object)}. @param object1 the first object @param object2 the second object @retur
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:80
↓ 145 callersMethodcontains
Checks if a configuration key exists. @param key the configuration key @return true if the key exists
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:74
↓ 140 callersMethodgetName
Gets the name of this custom executor @return the executor name
aop/src/main/java/net/legacy/library/aop/custom/CustomExecutor.java:36
↓ 140 callersMethodtoString
()
aop/src/main/java/net/legacy/library/aop/tracing/TraceContext.java:170
↓ 139 callersMethodset
Sets a configuration value. @param key the configuration key @param value the configuration value @return true if the configuration was updated suc
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:57
↓ 102 callersMethodget
Retrieves the current retry count for the specified key without modifying it. <p>If the key doesn't exist, implementations should return 0 rather tha
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounter.java:61
↓ 98 callersMethodget
Retrieves a value from the cache or computes it if not found. <p>This method first attempts to retrieve the value from the cache using the {@code get
cache/src/main/java/net/legacy/library/cache/service/CacheServiceInterface.java:43
↓ 94 callersMethodlogValidation
Logs a test validation result. @param moduleName the name of the module being tested @param testName the name of the test @param condition the
foundation/src/main/java/net/legacy/library/foundation/util/TestLogger.java:169
↓ 89 callersMethodisEmpty
Checks if this registry is empty (contains no aspects and no metadata). @return true if the registry contains no aspects and no metadata, false other
aop/src/main/java/net/legacy/library/aop/registry/AspectRegistry.java:260
↓ 81 callersMethodinitialize
Bootstraps the AOP module based on configuration flags and available aspects.
aop/src/main/java/net/legacy/library/aop/service/AOPService.java:88
↓ 78 callersMethodput
(String key, String value)
cache/src/main/java/net/legacy/library/cache/test/MultiLevelCacheTest.java:334
↓ 75 callersMethodcreate
Creates an instance of the specified class with AOP capabilities. @param clazz the class to instantiate @param <T> the type of the object @return t
aop/src/main/java/net/legacy/library/aop/factory/AOPFactory.java:35
↓ 70 callersMethodaddAttribute
Adds an attribute to the entity. @param key the attribute key @param value the attribute value @return the current instance for method chaining
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:146
↓ 69 callersMethodgetResource
Gets the underlying resource. @return the resource
cache/src/main/java/net/legacy/library/cache/service/LockableInterface.java:28
↓ 68 callersMethodwithMetadata
Creates a test result summary with custom metadata. @param moduleName the name of the module @param success whether tests passed @param message
foundation/src/main/java/net/legacy/library/foundation/test/TestResultSummary.java:99
↓ 60 callersMethodput
(String key, String value)
aop/src/main/java/net/legacy/library/aop/test/ConfigurationServiceTest.java:110
↓ 58 callersMethodbuild
Builds the TaskChain with all configured tasks and execution modes. <p>All tasks will have been started immediately when {@link ExecutionBuilder#exec
commons/src/main/java/net/legacy/library/commons/task/TaskChainBuilder.java:88
↓ 54 callersMethodequals
(Object other)
aop/src/main/java/net/legacy/library/aop/test/ClassLoaderIsolationTest.java:122
↓ 53 callersMethodexecute
Executes a script. @param script The script string to execute @param scriptScope The script scope to use for the script execution.
script/src/main/java/net/legacy/library/script/engine/ScriptEngineInterface.java:24
↓ 47 callersMethodstopTimer
Stops a named timer and records the result. @param timerName the name of the timer to stop @return the elapsed time in milliseconds, or -1 if timer w
foundation/src/main/java/net/legacy/library/foundation/util/TestTimer.java:92
↓ 46 callersMethodof
Creates an instance of {@link LockSettings}. @param waitTime the maximum time to wait for the lock @param leaseTime the time to hold the lock after
cache/src/main/java/net/legacy/library/cache/model/LockSettings.java:31
↓ 46 callersMethodstartTimer
Starts a named timer. @param timerName the name of the timer @return the timer start time in milliseconds
foundation/src/main/java/net/legacy/library/foundation/util/TestTimer.java:80
↓ 45 callersMethodgetTransactionId
()
aop/src/main/java/net/legacy/library/aop/transaction/TransactionLogStore.java:100
↓ 44 callersMethodregisterTestInterceptors
Registers enterprise-level aspects as class-specific interceptors for the supplied test classes.
aop/src/main/java/net/legacy/library/aop/service/AOPService.java:133
↓ 44 callersMethodsize
Returns the total number of tasks in the chain. Includes all tasks added via {@link ExecutionBuilder#execute(Object)} or {@link ExecutionBuilder#run(O
commons/src/main/java/net/legacy/library/commons/task/TaskChain.java:246
↓ 43 callersMethodjoin
Waits for all tasks in the chain to complete. <p>Since tasks execute immediately when {@link ExecutionBuilder#execute(Object)} or {@link ExecutionBui
commons/src/main/java/net/legacy/library/commons/task/TaskChain.java:76
↓ 42 callersMethodof
Creates a new {@link LegacyEntityData} instance with the specified entity type. @param uuid the unique identifier for the entity @param entityT
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:107
↓ 41 callersMethodgetEntityData
Retrieves entity data using the multi-level cache and database. @param uuid the unique identifier of the entity @return the entity data, or {@code nu
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:572
↓ 40 callersMethodof
Creates a new {@link RStreamTask} instance with the specified action name, data, and expiration time. @param actionName the name of the action as
player/src/main/java/net/legacy/library/player/task/redis/RStreamTask.java:36
↓ 40 callersMethodsize
Gets the current size of the counter map. <p>This method is useful for monitoring memory usage and debugging. @return the number of keys currently t
player/src/main/java/net/legacy/library/player/task/redis/resilience/LocalRetryCounter.java:238
↓ 39 callersMethodcreateTestEntityService
Create a new LegacyEntityDataService 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:191
↓ 38 callersMethodstart
Starts the task. Implementations should define the logic of the task within this method. <p>By default, overriding this method will schedule the task
commons/src/main/java/net/legacy/library/commons/task/TaskInterface.java:136
↓ 36 callersMethodsaveEntity
Saves entity data to the L1 cache and schedules asynchronous persistence to L2 cache and database. <p>This method performs the following steps: <ol>
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:355
↓ 35 callersMethodbuilder
Creates a new TaskChain builder with default TaskInterface. <p>The default TaskInterface uses {@link io.fairyproject.mc.scheduler.MCSchedulers#getAsy
commons/src/main/java/net/legacy/library/commons/task/TaskChain.java:50
↓ 33 callersMethodgetVersion
()
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:304
↓ 33 callersMethodmatches
Tests whether this pointcut matches the given method on the target class. <p>This method is called to determine if an aspect should be applied to a s
aop/src/main/java/net/legacy/library/aop/pointcut/Pointcut.java:28
↓ 30 callersMethodproceed
Continues the execution of the interceptor chain or invokes the target method. @return the result of the method invocation from the next interceptor
aop/src/main/java/net/legacy/library/aop/interceptor/MethodInvocation.java:18
↓ 29 callersMethodgetAttribute
Gets an attribute value. @param key the attribute key @return the attribute value, or {@code null} if not present
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:170
↓ 29 callersMethodregisterGlobalInterceptor
Registers a global interceptor.
aop/src/main/java/net/legacy/library/aop/service/AOPService.java:231
↓ 27 callersMethodgetDuration
Gets the duration of the trace in milliseconds. @return the duration, or 0 if the trace is still active
aop/src/main/java/net/legacy/library/aop/tracing/TraceContext.java:65
↓ 27 callersMethodsubmit_task
( &self, request: Request<TaskRequest>, )
experimental/third-party-schedulers/task-scheduler-rust/src/server/service.rs:17
↓ 25 callersFunctioncreate_task_request
Create task request
experimental/third-party-schedulers/task-scheduler-rust/tests/common/utils.rs:87
↓ 25 callersMethodputContextData
Puts data into the shared context. @param key the data key @param value the data value
foundation/src/main/java/net/legacy/library/foundation/test/TestExecutionContext.java:160
↓ 23 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/LegacyEntityDataService.java:257
↓ 23 callersMethodvalidateResult
Validates test results and updates context metrics. <p>This helper method can be used by subclasses to validate test outcomes and update the executio
foundation/src/main/java/net/legacy/library/foundation/test/AbstractModuleTestRunner.java:193
↓ 22 callersMethodclear
Clears all aspects and metadata from this registry. <p>This method removes all registered aspects and metadata, effectively resetting the registry to
aop/src/main/java/net/legacy/library/aop/registry/AspectRegistry.java:271
↓ 22 callersMethodincrementProcessed
Increments the processed count and returns the new value. @return the new processed count
foundation/src/main/java/net/legacy/library/foundation/test/TestExecutionContext.java:102
↓ 21 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/LegacyEntityDataService.java:279
↓ 21 callersMethodisEmpty
Checks if the string is null or empty (""). @param inputString the string to check @return true if the string is null or empty, false otherwise
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:130
↓ 20 callersMethodaddress
(&self)
experimental/third-party-schedulers/task-scheduler-rust/tests/common/mod.rs:25
↓ 20 callersFunctionconnect_to_server
Connect to the server
experimental/third-party-schedulers/task-scheduler-rust/tests/common/utils.rs:11
↓ 20 callersMethodexecute
{@inheritDoc} @param script {@inheritDoc} @param scriptScope {@inheritDoc} @return {@inheritDoc} @throws ScriptException {@inheritDoc}
script/src/main/java/net/legacy/library/script/engine/groovy/GroovyEngine.java:59
↓ 20 callersMethodgetKey
()
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:276
↓ 20 callersMethodnotNull
Checks if the object is not null. @param value object to check @return true if the object is not null, false otherwise
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:39
↓ 19 callersMethodgetTarget
()
aop/src/main/java/net/legacy/library/aop/proxy/AspectInvocationHandler.java:29
↓ 19 callersMethodsubmitWithVirtualThreadAsync
Submits a value-returning task for execution in a virtual thread and returns a {@link CompletableFuture}. @param task the task to be executed @param
commons/src/main/java/net/legacy/library/commons/task/TaskInterface.java:239
↓ 18 callersMethodclear
Clears all counters and expiration times. <p>This method removes all tracked retry counts but keeps the counter instance active for future use.
player/src/main/java/net/legacy/library/player/task/redis/resilience/LocalRetryCounter.java:248
↓ 18 callersMethodcompile
Compiles a script for later execution. This can improve performance if the same script will be executed multiple times. @param script The script stri
script/src/main/java/net/legacy/library/script/engine/ScriptEngineInterface.java:112
↓ 18 callersMethodfindAnnotatedClasses
Finds a set of classes annotated with the specified annotation within the given package and its sub-packages. <p>This method scans the classes in the
annotation/src/main/java/net/legacy/library/annotation/util/AnnotationScanner.java:34
↓ 17 callersMethodgetResult
Retrieves the final execution result of the task at the specified index. <p>Blocks until the task completes and returns the actual result value, not
commons/src/main/java/net/legacy/library/commons/task/TaskChain.java:93
↓ 17 callersMethodgetStatus
Gets the status of this participant. @param context the transaction context @return a CompletableFuture that completes with the participant status
aop/src/main/java/net/legacy/library/aop/transaction/TransactionParticipant.java:75
↓ 17 callersMethodincrementFailure
Increments the failure count and returns the new value. @return the new failure count
foundation/src/main/java/net/legacy/library/foundation/test/TestExecutionContext.java:120
↓ 17 callersMethodsetVariable
(String name, Object value)
script/src/main/java/net/legacy/library/script/scope/js/NashornScriptScope.java:43
↓ 17 callersMethodtestParameterMatching
(String expression, String methodName, boolean expectedMatch)
aop/src/main/java/net/legacy/library/aop/test/ParameterMatchingTest.java:180
↓ 16 callersMethodgetAllResults
Gets all completed timer results. @return a map of timer results by name
foundation/src/main/java/net/legacy/library/foundation/util/TestTimer.java:150
↓ 16 callersMethodgetArguments
Gets the arguments passed to the method. @return array of method arguments
aop/src/main/java/net/legacy/library/aop/interceptor/MethodInvocation.java:25
↓ 16 callersMethodgetTimerResult
Gets the result of a completed timer. @param timerName the name of the timer @return the timer result, or null if not found
foundation/src/main/java/net/legacy/library/foundation/util/TestTimer.java:141
↓ 16 callersMethodlogSuccess
Logs a test success message. @param moduleName the name of the module being tested @param message the success message @param replace format arg
foundation/src/main/java/net/legacy/library/foundation/util/TestLogger.java:58
↓ 16 callersMethodsaveEntities
Saves multiple entities to the L1 cache and schedules asynchronous persistence to L2 cache and database. <p>This method performs the following steps
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:466
↓ 16 callersFunctionsetup
()
experimental/third-party-schedulers/task-scheduler-rust/tests/common/mod.rs:65
↓ 15 callersMethodcreateNashornScriptEngine
Creates a {@link NashornScriptEngine}. @return a new {@link NashornScriptEngine} instance @see NashornScriptEngine
script/src/main/java/net/legacy/library/script/factory/ScriptEngineFactory.java:25
↓ 15 callersMethodgetGson
Retrieves the shared Gson instance. @return the shared Gson instance
commons/src/main/java/net/legacy/library/commons/util/GsonUtil.java:82
↓ 15 callersMethodgetParticipantId
Gets the unique identifier for this participant. @return the participant ID
aop/src/main/java/net/legacy/library/aop/transaction/TransactionParticipant.java:23
↓ 15 callersMethodgetValue
()
annotation/src/main/java/net/legacy/library/annotation/test/AnnotationScannerTest.java:343
↓ 14 callersMethodaddData
Adds a key-value pair to the player's data. @param key the key for the data @param value the value to associate with the key @return the current in
player/src/main/java/net/legacy/library/player/model/LegacyPlayerData.java:92
↓ 14 callersMethodaddRandomObject
Adds a random object with its corresponding probability to the utility class. @param object The random object @param probability The correspondi
commons/src/main/java/net/legacy/library/commons/util/random/RandomGenerator.java:94
↓ 14 callersMethodgetData
Retrieves the value associated with the specified key. @param key the key whose associated value is to be returned @return the value associated with
player/src/main/java/net/legacy/library/player/model/LegacyPlayerData.java:125
↓ 14 callersMethodgetMetricsSummary
Creates a summary map of current metrics. @return a map containing all current metrics
foundation/src/main/java/net/legacy/library/foundation/test/TestExecutionContext.java:238
↓ 14 callersMethodgetOrDefault
Retrieves the value associated with the specified key, or returns a default value if the key is not present. @param key the key whose associ
player/src/main/java/net/legacy/library/player/model/LegacyPlayerData.java:165
↓ 14 callersMethodinvoke
(Object proxy, Method method, Object[] args)
aop/src/main/java/net/legacy/library/aop/proxy/AspectInvocationHandler.java:33
↓ 14 callersMethodsuccess
Creates a successful test result summary. @param moduleName the name of the module @param message the success message @param durationMs the test d
foundation/src/main/java/net/legacy/library/foundation/test/TestResultSummary.java:63
↓ 13 callersMethodaccept
Handles the data contained in the task. <p>This method is the main processing logic for handling tasks received via RStream. It is expected to includ
player/src/main/java/net/legacy/library/player/task/redis/RStreamAccepterInterface.java:91
↓ 13 callersMethodcreateRhinoScriptEngine
Creates a {@link RhinoScriptEngine}. @return a new {@link RhinoScriptEngine} instance @see RhinoScriptEngine
script/src/main/java/net/legacy/library/script/factory/ScriptEngineFactory.java:35
↓ 13 callersMethodcreateValidationFailure
Creates a validation failure exception. @param validInput the validation annotation @param message the error message @return the validation failur
aop/src/main/java/net/legacy/library/aop/aspect/ValidationAspect.java:258
↓ 13 callersMethodexecute
Execute a {@link Runnable} task immediately, typically using the {@link MCScheduler#execute(Runnable)} method of the configured scheduler. This is use
commons/src/main/java/net/legacy/library/commons/task/TaskInterface.java:548
↓ 13 callersMethodgetVariable
(String name)
script/src/main/java/net/legacy/library/script/scope/js/NashornScriptScope.java:38
↓ 13 callersMethodmergeChangesFrom
Merges changes from another entity of the same UUID. <p>This method is used for conflict resolution when updates from different servers need to be me
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:283
↓ 13 callersMethodshutdown
Shuts down the trace service and releases any resources.
aop/src/main/java/net/legacy/library/aop/tracing/TraceService.java:123
↓ 13 callersMethodunwrap
(Throwable throwable)
aop/src/main/java/net/legacy/library/aop/aspect/RetryAspect.java:228
↓ 13 callersMethodwithMode
Defines the execution mode for the next task. <p>The mode function determines how the task will be executed (sync, async, virtual thread, etc.). This
commons/src/main/java/net/legacy/library/commons/task/TaskChainBuilder.java:61
↓ 12 callersMethodcreateProxy
Creates a dynamic proxy for the specified target object.
aop/src/main/java/net/legacy/library/aop/service/AOPService.java:154
↓ 12 callersMethodcreateV8Engine
Creates a {@link V8ScriptEngine}. @return a new {@link V8ScriptEngine} instance @see V8ScriptEngine
script/src/main/java/net/legacy/library/script/factory/ScriptEngineFactory.java:45
↓ 12 callersMethodgetProperty
Gets a system property by key. @param key the property key @return the property value, or null if not found
aop/src/main/java/net/legacy/library/aop/config/SystemPropertiesConfigurationSource.java:120
↓ 12 callersMethodgetTimingSummary
Creates a summary of all timing information. @return a formatted timing summary
foundation/src/main/java/net/legacy/library/foundation/util/TestTimer.java:233
↓ 12 callersMethodparse
Parses a pointcut expression string into a Pointcut object. @param expression the pointcut expression to parse @return the parsed Pointcut @throws Il
aop/src/main/java/net/legacy/library/aop/pointcut/PointcutExpressionParser.java:45
↓ 12 callersMethodsubmitTaskBlocking
Submits a task to the scheduler synchronously (blocking). @param taskId a unique identifier for this task submission. Must not be {@code null} or emp
experimental/third-party-schedulers/bukkit-grpc-client/src/main/java/net/legacy/library/grpcclient/task/GRPCTaskSchedulerClient.java:194
next →1–100 of 2,130, ranked by callers