Class QueryTime

java.lang.Object
edu.sc.seis.sod.QueryTime

public class QueryTime
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected int dbid  
    protected java.lang.String serverName  
    protected java.time.Instant time  
  • Constructor Summary

    Constructors 
    Constructor Description
    QueryTime()  
    QueryTime​(java.lang.String serverName, java.time.Instant time)  
  • Method Summary

    Modifier and Type Method Description
    long delayMillisUntilNextRefresh​(java.time.Duration refreshInterval)  
    boolean equals​(java.lang.Object o)  
    int getDbid()  
    java.lang.String getServerName()  
    java.time.Instant getTime()  
    int hashCode()  
    boolean needsRefresh​(java.time.Duration refreshInterval)  
    protected void setDbid​(int dbid)  
    protected void setServerName​(java.lang.String serverName)  
    void setTime​(java.time.Instant time)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dbid

      protected int dbid
    • serverName

      protected java.lang.String serverName
    • time

      protected java.time.Instant time
  • Constructor Details

    • QueryTime

      public QueryTime()
    • QueryTime

      public QueryTime​(java.lang.String serverName, java.time.Instant time)
  • Method Details

    • needsRefresh

      public boolean needsRefresh​(java.time.Duration refreshInterval)
    • getDbid

      public int getDbid()
    • getServerName

      public java.lang.String getServerName()
    • getTime

      public java.time.Instant getTime()
    • setDbid

      protected void setDbid​(int dbid)
    • setServerName

      protected void setServerName​(java.lang.String serverName)
    • setTime

      public void setTime​(java.time.Instant time)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • delayMillisUntilNextRefresh

      public long delayMillisUntilNextRefresh​(java.time.Duration refreshInterval)