Class DataPool


  • public final class DataPool
    extends java.lang.Object
    Internal helper class for collector implementations.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DataPool.DescriptorKey  
    • Constructor Summary

      Constructors 
      Constructor Description
      DataPool​(org.eclipse.aether.RepositorySystemSession session)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.aether.graph.DependencyNode> getChildren​(java.lang.Object key)  
      org.eclipse.aether.resolution.VersionRangeResult getConstraint​(java.lang.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​(java.lang.Object key, java.util.List<org.eclipse.aether.graph.DependencyNode> children)  
      void putConstraint​(java.lang.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)  
      java.lang.Object toKey​(org.eclipse.aether.artifact.Artifact artifact, java.util.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)  
      DataPool.DescriptorKey toKey​(org.eclipse.aether.resolution.ArtifactDescriptorRequest request)  
      java.lang.Object toKey​(org.eclipse.aether.resolution.VersionRangeRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONFIG_PROP_COLLECTOR_POOL_ARTIFACT

        public static final java.lang.String 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".
        Since:
        1.9.5
        See Also:
        Constant Field Values
      • CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY

        public static final java.lang.String 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".
        Since:
        1.9.5
        See Also:
        Constant Field Values
      • CONFIG_PROP_COLLECTOR_POOL_DESCRIPTOR

        public static final java.lang.String 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".
        Since:
        1.9.5
        See Also:
        Constant Field Values
      • CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY_LISTS

        public static final java.lang.String 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".
        Since:
        1.9.22
        See Also:
        Constant Field Values
      • NO_DESCRIPTOR

        public static final org.eclipse.aether.resolution.ArtifactDescriptorResult NO_DESCRIPTOR
    • Constructor Detail

      • DataPool

        public DataPool​(org.eclipse.aether.RepositorySystemSession session)
    • Method Detail

      • intern

        public org.eclipse.aether.artifact.Artifact intern​(org.eclipse.aether.artifact.Artifact artifact)
      • intern

        public org.eclipse.aether.graph.Dependency intern​(org.eclipse.aether.graph.Dependency dependency)
      • getDescriptor

        public org.eclipse.aether.resolution.ArtifactDescriptorResult getDescriptor​(DataPool.DescriptorKey key,
                                                                                    org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
      • toKey

        public java.lang.Object toKey​(org.eclipse.aether.resolution.VersionRangeRequest request)
      • getConstraint

        public org.eclipse.aether.resolution.VersionRangeResult getConstraint​(java.lang.Object key,
                                                                              org.eclipse.aether.resolution.VersionRangeRequest request)
      • putConstraint

        public void putConstraint​(java.lang.Object key,
                                  org.eclipse.aether.resolution.VersionRangeResult result)
      • toKey

        public java.lang.Object toKey​(org.eclipse.aether.artifact.Artifact artifact,
                                      java.util.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

        public java.util.List<org.eclipse.aether.graph.DependencyNode> getChildren​(java.lang.Object key)
      • putChildren

        public void putChildren​(java.lang.Object key,
                                java.util.List<org.eclipse.aether.graph.DependencyNode> children)