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

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

    Fields
    Modifier and Type
    Field
    Description
    static 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 collector for ArtifactDescriptor (POM) instances, matters for heap consumption.
    static final String
     
    static final String
     
    static final org.eclipse.aether.resolution.ArtifactDescriptorResult
     
    static final String
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    List<org.eclipse.aether.graph.DependencyNode>
     
    org.eclipse.aether.resolution.VersionRangeResult
    getConstraint(Object key, org.eclipse.aether.resolution.VersionRangeRequest request)
     
    org.eclipse.aether.resolution.ArtifactDescriptorResult
    getDescriptor(Object 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(Object key, org.eclipse.aether.resolution.ArtifactDescriptorException e)
     
    void
    putDescriptor(Object 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
    • 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 Object toKey(org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
    • getDescriptor

      public org.eclipse.aether.resolution.ArtifactDescriptorResult getDescriptor(Object key, org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
    • putDescriptor

      public void putDescriptor(Object key, org.eclipse.aether.resolution.ArtifactDescriptorResult result)
    • putDescriptor

      public void putDescriptor(Object 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)