Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LegacyLands/legacy-lands-library
/ functions
Functions
2,130 in github.com/LegacyLands/legacy-lands-library
⨍
Functions
2,130
◇
Types & classes
421
↓ 5 callers
Method
getMetadata
(String key)
aop/src/main/java/net/legacy/library/aop/config/DefaultConfigurationService.java:320
↓ 5 callers
Method
getName
Gets the name of the configuration source. @return the source name
aop/src/main/java/net/legacy/library/aop/config/ConfigurationSource.java:24
↓ 5 callers
Method
getRLPDSKey
Generates a key for a {@link LegacyPlayerDataService} and a {@link UUID}. @param uuid the UUID of the player @param legacyPlayerDa
player/src/main/java/net/legacy/library/player/util/RKeyUtil.java:77
↓ 5 callers
Method
getStoreCount
()
cache/src/main/java/net/legacy/library/cache/test/AbstractCacheServiceTest.java:353
↓ 5 callers
Method
hasRelationship
Checks if this entity has a specific relationship with another entity. @param relationshipType the type of relationship @param targetEntityUuid the U
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:236
↓ 5 callers
Method
logDistributedFailure
Logs distributed counter failures for monitoring and debugging. @param key the key that failed @param throwable the exception that occurred
player/src/main/java/net/legacy/library/player/task/redis/resilience/HybridRetryCounter.java:261
↓ 5 callers
Method
matchesCriterion
Checks if an entity matches a relationship criterion. @param entity the entity to check @param criterion the relationship criterion to match again
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:863
↓ 5 callers
Method
notifyChangeListeners
Notifies change listeners of a configuration change. @param key the configuration key @param oldValue the old value @param newValue the new valu
aop/src/main/java/net/legacy/library/aop/config/DefaultConfigurationService.java:547
↓ 5 callers
Method
of
Static factory method to create a new lockable resource instance. @param resource the underlying resource to be wrapped @param <R> the resource
cache/src/main/java/net/legacy/library/cache/service/AbstractLockable.java:45
↓ 5 callers
Method
of
Creates a new {@link LegacyPlayerDataService}. @param name the unique name of the service @param mongoDBConnectionConfig the M
player/src/main/java/net/legacy/library/player/service/LegacyPlayerDataService.java:144
↓ 5 callers
Function
properties
build.gradle.kts:6
↓ 5 callers
Method
saveLegacyPlayerData
Saves player data to L2 cache and schedules database persistence. <p>This method performs the following operations: <ol> <li>Save the data to L2 ca
player/src/main/java/net/legacy/library/player/service/LegacyPlayerDataService.java:408
↓ 5 callers
Method
setAttribute
Sets a context attribute. @param key the attribute key @param value the attribute value
aop/src/main/java/net/legacy/library/aop/model/AspectContext.java:52
↓ 5 callers
Method
wrapGroovyException
(String message, Throwable cause)
script/src/main/java/net/legacy/library/script/engine/groovy/GroovyEngine.java:278
↓ 4 callers
Function
any_i32
Convert i32 to Any message
experimental/third-party-schedulers/task-scheduler-rust/tests/common/utils.rs:22
↓ 4 callers
Function
any_map
(map: HashMap<String, Any>)
experimental/third-party-schedulers/task-scheduler-rust/tests/common/utils.rs:76
↓ 4 callers
Method
applyFunctionWithLock
Applies a function to the underlying cache of a specific level (with lock). <p>This method obtains the lock from the targeted cache (using the provid
cache/src/main/java/net/legacy/library/cache/service/multi/FlexibleMultiLevelCacheService.java:104
↓ 4 callers
Method
calculateSum
(int a, int b)
aop/src/main/java/net/legacy/library/aop/test/AOPMonitoringTest.java:270
↓ 4 callers
Method
compile
{@inheritDoc} @param script {@inheritDoc} @return {@inheritDoc} @throws ScriptException {@inheritDoc}
script/src/main/java/net/legacy/library/script/engine/groovy/GroovyEngine.java:108
↓ 4 callers
Method
configureSimplixBuilder
Configures the {@link SimplixBuilder} with default settings for data type, config settings, and reload behavior. @param builder the {@link SimplixBui
configuration/src/main/java/net/legacy/library/configuration/factory/SimplixBuilderFactory.java:87
↓ 4 callers
Method
convertToProtoAny
Converts a general Java object into a Protobuf {@link Any} message suitable for task arguments. <p>This method uses pattern matching to handle differ
experimental/third-party-schedulers/bukkit-grpc-client/src/main/java/net/legacy/library/grpcclient/task/ProtoConversionUtil.java:45
↓ 4 callers
Method
create
Creates a new LocalRetryCounter with automatic TTL cleanup. <p>The cleanup task runs every minute to remove expired entries, keeping memory usage und
player/src/main/java/net/legacy/library/player/task/redis/resilience/LocalRetryCounter.java:66
↓ 4 callers
Method
create
Create Commons module test runner
commons/src/main/java/net/legacy/library/commons/test/CommonsTestRunner.java:54
↓ 4 callers
Method
createLocal
Creates a local retry counter with automatic cleanup. @return a new {@link LocalRetryCounter} instance
player/src/main/java/net/legacy/library/player/task/redis/resilience/RetryCounterFactory.java:62
↓ 4 callers
Method
delete
Deletes a configuration property from this source. @param key the configuration key @return true if the property was deleted successfully
aop/src/main/java/net/legacy/library/aop/config/ConfigurationSource.java:95
↓ 4 callers
Method
deserialize
{@inheritDoc} @param json {@inheritDoc} @param typeOfT {@inheritDoc} @param context {@inheritDoc} @return {@inheritDoc} @throws JsonParseException
player/src/main/java/net/legacy/library/player/serialize/adapter/PairTypeAdapter.java:49
↓ 4 callers
Method
ensureConfigurationLoaded
()
aop/src/main/java/net/legacy/library/aop/service/AOPService.java:355
↓ 4 callers
Method
ensureIndex
Helper method to create a MongoDB index if it doesn't already exist. <p>It generates a standardized index name and handles potential {@link MongoComm
player/src/main/java/net/legacy/library/player/index/LegacyIndexManager.java:131
↓ 4 callers
Method
exception
Handles an exception that occurred during the processing of a class. @param clazz the class that encountered an exception during processing @para
annotation/src/main/java/net/legacy/library/annotation/service/CustomAnnotationProcessor.java:38
↓ 4 callers
Method
execute
Executes the compensation action with the given failure context. <p>This method should handle any cleanup, rollback, or alternative processing requir
player/src/main/java/net/legacy/library/player/task/redis/resilience/CompensationAction.java:102
↓ 4 callers
Method
executeCompiled
Executes a previously compiled script. @param compiledScript The compiled script object (returned by {@link #compile}). @param scriptScope The scr
script/src/main/java/net/legacy/library/script/engine/ScriptEngineInterface.java:123
↓ 4 callers
Method
generateKey
Generates a unique key for a class and test name combination. @param clazz the class @param testName the test name @return the generated key
annotation/src/main/java/net/legacy/library/annotation/test/TestResultRegistry.java:162
↓ 4 callers
Method
getAccessCount
()
cache/src/main/java/net/legacy/library/cache/test/AbstractCacheServiceTest.java:349
↓ 4 callers
Method
getCacheWithType
Gets the underlying cache implementation with a specific type. @param <R> the desired return type @return the cache implementation of type {@code R}
cache/src/main/java/net/legacy/library/cache/service/multi/TieredCacheLevel.java:60
↓ 4 callers
Method
getExecutor
Gets a custom executor by name @param name the executor name @return the executor, or null if not found
aop/src/main/java/net/legacy/library/aop/custom/CustomExecutorRegistry.java:110
↓ 4 callers
Method
getFromDatabase
Retrieves the {@link LegacyEntityData} from the database. @param uuid the unique identifier of the entity @return the entity data retrieved from the
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:313
↓ 4 callers
Method
getGroovyBinding
(ScriptScope scriptScope)
script/src/main/java/net/legacy/library/script/engine/groovy/GroovyEngine.java:266
↓ 4 callers
Method
getLegacyEntityDataService
Retrieves a {@link LegacyEntityDataService} by its unique name. @param name the name of the service to retrieve @return an {@link Optional} containin
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:218
↓ 4 callers
Method
getLegacyPlayerDataService
Retrieves a {@link LegacyPlayerDataService} by its unique name. @param name the name of the service to retrieve @return an {@link Optional} containin
player/src/main/java/net/legacy/library/player/service/LegacyPlayerDataService.java:190
↓ 4 callers
Method
getMetrics
Gets the rate limiter metrics. @return the rate limiter metrics
aop/src/main/java/net/legacy/library/aop/fault/RateLimiter.java:161
↓ 4 callers
Method
getName
Gets the name of this security provider. @return provider name
aop/src/main/java/net/legacy/library/aop/security/SecurityProvider.java:21
↓ 4 callers
Method
getOrCacheEntity
Helper method to get an entity and cache it during a transaction. @param entityId the entity ID to get @param cache the transaction cache of modif
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:946
↓ 4 callers
Method
getResultWithMersenneTwister
Randomly returns an object based on the probability of all current random objects. <p>This method uses the Mersenne Twister pseudo-random number gene
commons/src/main/java/net/legacy/library/commons/util/random/RandomGenerator.java:292
↓ 4 callers
Method
getSuccessRate
Calculates the success rate as a percentage. @return the success rate (0.0 to 100.0)
foundation/src/main/java/net/legacy/library/foundation/test/TestMetrics.java:220
↓ 4 callers
Method
giveUp
Creates a result indicating the operation should be abandoned with compensation. <p>The specified compensation action will be executed to handle the
player/src/main/java/net/legacy/library/player/task/redis/resilience/FailureHandlingResult.java:101
↓ 4 callers
Method
isBetween
Checks if the int value is within the specified range (inclusive). @param value the value to check @param min the minimum value (inclusive) @param
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:587
↓ 4 callers
Method
isCacheEnabled
()
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:312
↓ 4 callers
Method
isGreaterThan
Checks if the int value is greater than the specified minimum (exclusive). @param value the value to check @param min the minimum value (exclusive)
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:498
↓ 4 callers
Method
isValid
()
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:221
↓ 4 callers
Method
matches
Checks if the string matches the regular expression. @param inputString the string to check @param regex the regular expression @return true if
commons/src/main/java/net/legacy/library/commons/util/ValidationUtil.java:272
↓ 4 callers
Method
of
Static factory method for creating a {@link TieredCacheLevel}. @param level the level identifier @param cache the underlying cache @param <L> the t
cache/src/main/java/net/legacy/library/cache/service/multi/TieredCacheLevel.java:39
↓ 4 callers
Method
of
Factory method to create a new {@link PlayerDataPersistenceTask}. @param lockSettings the settings for lock acquisition @param legacyPlaye
player/src/main/java/net/legacy/library/player/task/PlayerDataPersistenceTask.java:51
↓ 4 callers
Method
of
Creates a new {@link EntityRStreamTask} instance with the specified task name, data, and expiration time. @param actionName the name of the task
player/src/main/java/net/legacy/library/player/task/redis/EntityRStreamTask.java:48
↓ 4 callers
Method
pubEntityRStreamTask
Publishes an entity-related task to the Redis stream for processing across servers. <p>After the returned {@link ScheduledTask} is executed, it indic
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:232
↓ 4 callers
Method
recordFailure
(TraceContext traceContext, Traced traced, Throwable throwable, long startTime)
aop/src/main/java/net/legacy/library/aop/aspect/TracingAspect.java:177
↓ 4 callers
Method
recordSuccess
(TraceContext traceContext, Traced traced, Object result, long startTime)
aop/src/main/java/net/legacy/library/aop/aspect/TracingAspect.java:168
↓ 4 callers
Method
registerProvider
Registers a security provider. @param provider the security provider to register
aop/src/main/java/net/legacy/library/aop/security/SecurityProviderRegistry.java:37
↓ 4 callers
Method
retrieveOrStoreInCache
Core method implementing the cache retrieval and storage logic with expiration support. @param value the value from cache, may be {@code nu
cache/src/main/java/net/legacy/library/cache/service/redis/RedisCacheService.java:126
↓ 4 callers
Function
rootProperties
cache/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
mongodb/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
aop/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
annotation/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
script/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
configuration/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
player/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
foundation/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
experimental/third-party-schedulers/bukkit-grpc-client/build.gradle.kts:2
↓ 4 callers
Function
rootProperties
commons/build.gradle.kts:2
↓ 4 callers
Method
selectCounter
Selects the appropriate counter based on the configured predicate. @param key the key to evaluate @return the selected {@link RetryCounter} implement
player/src/main/java/net/legacy/library/player/task/redis/resilience/HybridRetryCounter.java:248
↓ 4 callers
Method
setEntityDefaultTTL
Sets the default TTL for an entity in the L2 cache. If the entity doesn't exist in L2 cache, this method will have no effect. @param uuid the UUID of
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:1080
↓ 4 callers
Method
setEntityTTL
Sets the TTL (Time-To-Live) for an entity in the L2 cache. If the entity doesn't exist in L2 cache, this method will have no effect. @param uuid the
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:1052
↓ 4 callers
Method
setGlobalVariable
Sets the value of a global variable in the engine's scope. @param name The name of the global variable @param value The value to set for the global
script/src/main/java/net/legacy/library/script/engine/ScriptEngineInterface.java:208
↓ 4 callers
Method
setReliableTTL
Sets TTL for an existing Redis key using atomic operations. <p>Uses Lua script to atomically set TTL without modifying the value. This preserves exis
player/src/main/java/net/legacy/library/player/util/TTLUtil.java:141
↓ 4 callers
Method
setTTLIfMissing
Atomically sets TTL for a key if it doesn't already have one. <p>Uses Lua script to prevent race conditions between TTL check and setting. @param re
player/src/main/java/net/legacy/library/player/util/TTLUtil.java:203
↓ 4 callers
Function
setup_with_options
(port: Option<u16>, library_dir: Option<&str>)
experimental/third-party-schedulers/task-scheduler-rust/tests/common/mod.rs:103
↓ 4 callers
Method
shouldApplyAspect
Checks if aspects should be applied based on ClassLoader isolation. @param aspectContext the aspect context @param aspectLoader the ClassLoader of t
aop/src/main/java/net/legacy/library/aop/service/ClassLoaderIsolationService.java:66
↓ 4 callers
Method
shutdown
()
aop/src/main/java/net/legacy/library/aop/config/DefaultConfigurationService.java:345
↓ 4 callers
Method
supports
Checks if this executor supports the given method context @param context the aspect context @return true if supported, false otherwise
aop/src/main/java/net/legacy/library/aop/custom/CustomExecutor.java:61
↓ 4 callers
Method
valid
()
aop/src/main/java/net/legacy/library/aop/config/ConfigurationService.java:209
↓ 3 callers
Method
addAttributes
Adds multiple attributes to the entity. @param attributes the map containing the attributes to add @return the current instance for method chaining
player/src/main/java/net/legacy/library/player/model/LegacyEntityData.java:158
↓ 3 callers
Method
addConfigurationSource
Adds a configuration source to the service. @param source the configuration source to add
aop/src/main/java/net/legacy/library/aop/config/DefaultConfigurationService.java:74
↓ 3 callers
Function
any_list
(items: Vec<Any>)
experimental/third-party-schedulers/task-scheduler-rust/tests/common/utils.rs:64
↓ 3 callers
Method
beginTransaction
Begins a new distributed transaction. @param annotation the distributed transaction annotation @param methodName the method name for transaction iden
aop/src/main/java/net/legacy/library/aop/transaction/DistributedTransactionCoordinator.java:53
↓ 3 callers
Method
commit
Commits the transaction (second phase of 2PC). <p>This method should make permanent changes to the underlying data store. Once this method completes
aop/src/main/java/net/legacy/library/aop/transaction/TransactionParticipant.java:56
↓ 3 callers
Method
convertStringToValue
Converts a string value to the appropriate type. @param stringValue the string value @return the converted value
aop/src/main/java/net/legacy/library/aop/config/DefaultConfigurationService.java:395
↓ 3 callers
Method
convertV8ToJava
(V8Value value)
script/src/main/java/net/legacy/library/script/engine/js/V8ScriptEngine.java:265
↓ 3 callers
Method
copyState
(Object source, Object target)
aop/src/main/java/net/legacy/library/aop/proxy/AspectProxyFactory.java:51
↓ 3 callers
Method
create
Creates a new context for the given method invocation. @param target the target object @param method the method being invoked @param arguments
aop/src/main/java/net/legacy/library/aop/model/AspectContext.java:40
↓ 3 callers
Method
createEntityIfNotExists
Creates a new entity with the specified type if it doesn't exist. @param uuid the unique identifier of the entity @param entityType the type of
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:330
↓ 3 callers
Method
createInvocationScenario
(ClassLoader loader)
aop/src/main/java/net/legacy/library/aop/test/ClassLoaderIsolationTest.java:82
↓ 3 callers
Method
createRStreamTask
Creates a new {@link EntityRStreamTask} for updating entity data based on the entity's UUID. @param uuid the {@link UUID} of the entity @pa
player/src/main/java/net/legacy/library/player/task/redis/impl/EntityDataUpdateRStreamAccepter.java:45
↓ 3 callers
Method
createScriptInstance
(Class<?> scriptClass, Binding binding)
script/src/main/java/net/legacy/library/script/engine/groovy/GroovyEngine.java:286
↓ 3 callers
Method
createShellForBinding
(Binding binding)
script/src/main/java/net/legacy/library/script/engine/groovy/GroovyEngine.java:258
↓ 3 callers
Method
executeTestClass
Execute all test methods in a test class
commons/src/main/java/net/legacy/library/commons/test/CommonsTestRunner.java:114
↓ 3 callers
Method
extractIntegerMetadata
Safely extracts integer metadata with default value. @param metadata the metadata map @param key the metadata key @return the integer value or 0
foundation/src/main/java/net/legacy/library/foundation/test/TestExecutionUtil.java:106
↓ 3 callers
Method
findEntitiesByRelationship
Finds all entities that have a relationship with the specified entity. @param relationshipType the type of relationship to search for @param targetEn
player/src/main/java/net/legacy/library/player/service/LegacyEntityDataService.java:664
↓ 3 callers
Method
formatArguments
(Object[] args)
aop/src/main/java/net/legacy/library/aop/aspect/LoggingAspect.java:129
↓ 3 callers
Method
getActionName
{@inheritDoc} @return {@inheritDoc}
player/src/main/java/net/legacy/library/player/task/redis/resilience/ResilientRStreamAccepter.java:96
↓ 3 callers
Method
getCurrentTrace
Gets the current active trace context. @return the current trace context, or null if no active trace
aop/src/main/java/net/legacy/library/aop/tracing/TraceService.java:42
↓ 3 callers
Method
getEntityKey
Generates a Redis key for storing entity data. @param uuid the UUID of the entity @param service the entity data service @return the generated Red
player/src/main/java/net/legacy/library/player/util/EntityRKeyUtil.java:32
← previous
next →
201–300 of 2,130, ranked by callers