Package com.tailf.ned

Class NedTTL

Object
com.tailf.ned.NedTTL

public class NedTTL extends Object
The NedTTL class is used to pass time-to-live information to NCS for the entries in a config=false cache.
  • Constructor Details

    • NedTTL

      public NedTTL(ConfPath path, int ttl)
      Creates a single TTL entry.
      Parameters:
      path - The path for which the TTL holds.
      ttl - The time-to-live in seconds.
    • NedTTL

      public NedTTL(ConfPath path, int ttl, boolean isSubtree)
      Creates a single TTL entry.
      Parameters:
      path - The path for which the TTL holds.
      ttl - The time-to-live in seconds.
      isSubtree - Signals that the entire subtree for the path was fetched and that this is the default TTL for it. Unless there exists a TTL on a path below it, NCS will not fetch more data below this path until this TTL expires. This parameter only works together with showStatsPath().
  • Method Details

    • encode

      public ConfEObject encode()
    • getPath

      public ConfPath getPath()
    • getTTL

      public int getTTL()
    • isSubtree

      public boolean isSubtree()
    • toString

      public String toString()
      Overrides:
      toString in class Object