Class ReactorModelCache

  • All Implemented Interfaces:
    ModelCache

    class ReactorModelCache
    extends java.lang.Object
    implements ModelCache
    A simple model cache used to accelerate model building during a reactor build.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String tag)
      Gets the specified data from the cache.
      void put​(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String tag, java.lang.Object data)
      Puts the specified data into the cache.
      • Methods inherited from class java.lang.Object

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

      • ReactorModelCache

        ReactorModelCache()
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.String groupId,
                                    java.lang.String artifactId,
                                    java.lang.String version,
                                    java.lang.String tag)
        Description copied from interface: ModelCache
        Gets the specified data from the cache.
        Specified by:
        get in interface ModelCache
        Parameters:
        groupId - The group id of the cache record, must not be null.
        artifactId - The artifact id of the cache record, must not be null.
        version - The version of the cache record, must not be null.
        tag - The tag of the cache record, must not be null.
        Returns:
        The requested data or null if none was present in the cache.
      • put

        public void put​(java.lang.String groupId,
                        java.lang.String artifactId,
                        java.lang.String version,
                        java.lang.String tag,
                        java.lang.Object data)
        Description copied from interface: ModelCache
        Puts the specified data into the cache.
        Specified by:
        put in interface ModelCache
        Parameters:
        groupId - The group id of the cache record, must not be null.
        artifactId - The artifact id of the cache record, must not be null.
        version - The version of the cache record, must not be null.
        tag - The tag of the cache record, must not be null.
        data - The data to store in the cache, must not be null.