Class WaveformWorkUnit
java.lang.Object
edu.sc.seis.sod.hibernate.eventpair.WaveformWorkUnit
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
AbstractEventPair
public abstract class WaveformWorkUnit
extends java.lang.Object
implements java.lang.Runnable
-
Field Summary
Fields Modifier and Type Field Description protected long
dbid
static org.slf4j.Logger
failLogger
protected java.time.Instant
lastQuery
protected int
numRetries
-
Constructor Summary
Constructors Modifier Constructor Description protected
WaveformWorkUnit()
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getDbid()
java.time.Instant
getLastQuery()
int
getNumRetries()
int
hashCode()
protected void
setDbid(long dbid)
protected void
setLastQuery(java.time.Instant lastQuery)
protected void
setNumRetries(int numRetries)
void
updateRetries()
-
Field Details
-
dbid
protected long dbid -
numRetries
protected int numRetries -
lastQuery
protected java.time.Instant lastQuery -
failLogger
public static final org.slf4j.Logger failLogger
-
-
Constructor Details
-
WaveformWorkUnit
protected WaveformWorkUnit()
-
-
Method Details
-
updateRetries
public void updateRetries() -
getDbid
public long getDbid() -
setDbid
protected void setDbid(long dbid) -
getNumRetries
public int getNumRetries() -
setNumRetries
protected void setNumRetries(int numRetries) -
getLastQuery
public java.time.Instant getLastQuery() -
setLastQuery
protected void setLastQuery(java.time.Instant lastQuery) -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-