Package org.apache.spark.sql.streaming
Class TTLConfig
Object
org.apache.spark.sql.streaming.TTLConfig
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
TTL Configuration for state variable. State values will not be returned past ttlDuration, and
 will be eventually removed from the state store. Any state update resets the ttl to current
 processing time plus ttlDuration.
 
 Passing a TTL duration of zero will disable the TTL for the state variable. Users can also use
 the helper method TTLConfig.NONE in Scala or TTLConfig.NONE() in Java to disable TTL for
 the state variable.
 
param: ttlDuration time to live duration for state stored in the state variable.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
TTLConfig
 
- 
- 
Method Details- 
NONEHelper method to create a TTLConfig with expiry duration as Zero- Returns:
- \- TTLConfig with expiry duration as Zero
 
- 
ttlDuration
 
-