Class CircularArrayAccessLogKeeper


  • public class CircularArrayAccessLogKeeper
    extends java.lang.Object
    This class keeps some information from the access log from the requests in memory. It is thread-safe.
    Author:
    dybis
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int SIZE  
    • Constructor Summary

      Constructors 
      Constructor Description
      CircularArrayAccessLogKeeper()
      This class is intended to be used with injection so it can be shared between other classes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addUri​(java.lang.String uri)
      Add a new URI.
      java.util.List<java.lang.String> getUris()
      Creates a list of Uris.
      • Methods inherited from class java.lang.Object

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

      • CircularArrayAccessLogKeeper

        public CircularArrayAccessLogKeeper()
        This class is intended to be used with injection so it can be shared between other classes.
    • Method Detail

      • getUris

        public java.util.List<java.lang.String> getUris()
        Creates a list of Uris.
        Returns:
        URIs as string
      • addUri

        public void addUri​(java.lang.String uri)
        Add a new URI. It might remove an old entry to make space for new entry.
        Parameters:
        uri - uri as string