Class DataPool
java.lang.Object
org.eclipse.aether.internal.impl.collect.DataPool
Internal helper class for collector implementations.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Flag controlling interning data pool type used by dependency collector for Artifact instances, matters for heap consumption.static final String
Flag controlling interning data pool type used by dependency collector for Dependency instances, matters for heap consumption.static final String
Flag controlling interning data pool type used by dependency lists collector for ArtifactDescriptor (POM) instances, matters for heap consumption.static final String
Flag controlling interning data pool type used by dependency collector for ArtifactDescriptor (POM) instances, matters for heap consumption.static final String
Flag controlling interning artifact descriptor dependencies.static final String
Flag controlling interning artifact descriptor managed dependencies.static final String
static final String
static final org.eclipse.aether.resolution.ArtifactDescriptorResult
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList
<org.eclipse.aether.graph.DependencyNode> getChildren
(Object key) org.eclipse.aether.resolution.VersionRangeResult
getConstraint
(Object key, org.eclipse.aether.resolution.VersionRangeRequest request) org.eclipse.aether.resolution.ArtifactDescriptorResult
getDescriptor
(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorRequest request) org.eclipse.aether.artifact.Artifact
intern
(org.eclipse.aether.artifact.Artifact artifact) org.eclipse.aether.graph.Dependency
intern
(org.eclipse.aether.graph.Dependency dependency) void
putChildren
(Object key, List<org.eclipse.aether.graph.DependencyNode> children) void
putConstraint
(Object key, org.eclipse.aether.resolution.VersionRangeResult result) void
putDescriptor
(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorException e) void
putDescriptor
(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorResult result) toKey
(org.eclipse.aether.artifact.Artifact artifact, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.collection.DependencySelector selector, org.eclipse.aether.collection.DependencyManager manager, org.eclipse.aether.collection.DependencyTraverser traverser, org.eclipse.aether.collection.VersionFilter filter) toKey
(org.eclipse.aether.resolution.ArtifactDescriptorRequest request) toKey
(org.eclipse.aether.resolution.VersionRangeRequest request)
-
Field Details
-
CONFIG_PROPS_PREFIX
- See Also:
-
CONFIG_PROP_COLLECTOR_POOL_ARTIFACT
Flag controlling interning data pool type used by dependency collector for Artifact instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak". -
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY
Flag controlling interning data pool type used by dependency collector for Dependency instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak". -
CONFIG_PROP_COLLECTOR_POOL_DESCRIPTOR
Flag controlling interning data pool type used by dependency collector for ArtifactDescriptor (POM) instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak". -
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY_LISTS
Flag controlling interning data pool type used by dependency lists collector for ArtifactDescriptor (POM) instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak". -
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_DEPENDENCIES
Flag controlling interning artifact descriptor dependencies.- Since:
- 1.9.22
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
- false
-
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIES
public static final String CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIESFlag controlling interning artifact descriptor managed dependencies.- Since:
- 1.9.22
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
- true
-
NO_DESCRIPTOR
-
HARD
- See Also:
-
WEAK
- See Also:
-
-
Constructor Details
-
DataPool
-
-
Method Details
-
intern
-
intern
-
toKey
public DataPool.DescriptorKey toKey(org.eclipse.aether.resolution.ArtifactDescriptorRequest request) -
getDescriptor
public org.eclipse.aether.resolution.ArtifactDescriptorResult getDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorRequest request) -
putDescriptor
public void putDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorResult result) -
putDescriptor
public void putDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorException e) -
toKey
-
getConstraint
public org.eclipse.aether.resolution.VersionRangeResult getConstraint(Object key, org.eclipse.aether.resolution.VersionRangeRequest request) -
putConstraint
-
toKey
public Object toKey(org.eclipse.aether.artifact.Artifact artifact, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.collection.DependencySelector selector, org.eclipse.aether.collection.DependencyManager manager, org.eclipse.aether.collection.DependencyTraverser traverser, org.eclipse.aether.collection.VersionFilter filter) -
getChildren
-
putChildren
-