@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) |
void |
shutdown() |
public RedissonSyncContextFactory()
public SyncContext newInstance(RepositorySystemSession session, boolean shared)
newInstance
in interface SyncContextFactory
@PreDestroy public void shutdown()
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.