Package org.duracloud.mill.ltp
Class State<T>
- java.lang.Object
-
- org.duracloud.mill.ltp.State<T>
-
public class State<T> extends Object
Represents the persistent state of theLoopingTaskProducer.- Author:
- Daniel Bernstein Date: Nov 6, 2013
-
-
Constructor Summary
Constructors Constructor Description State()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCurrentRunStartDate()LinkedHashSet<T>getMorsels()DategetNextRunStartDate()voidsetCurrentRunStartDate(Date time)voidsetMorsels(LinkedHashSet<T> morsels)voidsetNextRunStartDate(Date time)StringtoString()
-
-
-
Method Detail
-
getMorsels
public LinkedHashSet<T> getMorsels()
- Returns:
- the morsels
-
setMorsels
public void setMorsels(LinkedHashSet<T> morsels)
- Parameters:
morsels- the morsels to set
-
getCurrentRunStartDate
public Date getCurrentRunStartDate()
- Returns:
-
setCurrentRunStartDate
public void setCurrentRunStartDate(Date time)
- Parameters:
time-
-
getNextRunStartDate
public Date getNextRunStartDate()
- Returns:
-
setNextRunStartDate
public void setNextRunStartDate(Date time)
- Parameters:
time-
-
-