@Named @Priority(value=2147483647) @Singleton public class RedissonSyncContextFactory extends Object implements SyncContextFactory
RReadWriteLock.
It locks fine-grained with groupId, artifactId and version if required.
Note: This component is still considered to be experimental, use with caution!
aether.syncContext.redisson.configFile is set and the file at that
specific path does exist, load it otherwise an exception is thrown.${maven.conf}/maven-resolver-redisson.yaml, but ignore if it does not exist.redis://localhost:6379 with client name maven-resolver.localhost.aether.syncContext.redisson.discriminator is set, use it and skip
the remaining steps.${hostname}:${maven.repo.local}.maven:resolver:${discriminator}:${artifact|metadata}.
${artifact} will
always resolve to artifact:${groupId}:${artifactId}:${baseVersion}.${metadata} will resolve to one of metadata:${groupId}:${artifactId}:${version},
metadata:${groupId}:${artifactId}, metadata:${groupId},
metadata:.| Constructor and Description |
|---|
RedissonSyncContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
SyncContext |
newInstance(RepositorySystemSession session,
boolean shared)
Creates a new synchronization context.
|
void |
shutdown() |
public RedissonSyncContextFactory()
public SyncContext newInstance(RepositorySystemSession session, boolean shared)
SyncContextFactorynewInstance in interface SyncContextFactorysession - The repository session during which the context will be used, must not be null.shared - A flag indicating whether access to the artifacts/metadata associated with the new context can be
shared among concurrent readers or whether access needs to be exclusive to the calling thread.null.RepositorySystem.newSyncContext(RepositorySystemSession, boolean)@PreDestroy public void shutdown()
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.