java.lang.Object
org.eclipse.aether.internal.impl.collect.DataPool

public final class DataPool extends Object
Internal helper class for collector implementations.
  • Field Details

    • CONFIG_PROPS_PREFIX

      public static final String 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".
      Since:
      1.9.5
      See Also:
      Sourced from:
      RepositorySystemSession.getConfigProperties()
      Value type:
      String
      Default value:
      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".
      Since:
      1.9.5
      See Also:
      Sourced from:
      RepositorySystemSession.getConfigProperties()
      Value type:
      String
      Default value:
      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".
      Since:
      1.9.5
      See Also:
      Sourced from:
      RepositorySystemSession.getConfigProperties()
      Value type:
      String
      Default value:
      HARD
    • 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:
      Sourced from:
      RepositorySystemSession.getConfigProperties()
      Value type:
      String
      Default value:
      HARD
    • 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

      Flag controlling interning artifact descriptor managed dependencies.
      Since:
      1.9.22
      See Also:
      Sourced from:
      RepositorySystemSession.getConfigProperties()
      Value type:
      Boolean
      Default value:
      true
    • NO_DESCRIPTOR

      public static final org.eclipse.aether.resolution.ArtifactDescriptorResult NO_DESCRIPTOR
    • HARD

      public static final String HARD
      See Also:
    • WEAK

      public static final String WEAK
      See Also:
  • Constructor Details

    • DataPool

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

    • 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)
    • 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

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

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

      public void putConstraint(Object key, org.eclipse.aether.resolution.VersionRangeResult result)
    • 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

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

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