Class DataRetrievalPolicy
- All Implemented Interfaces:
Serializable
,Cloneable
Data retrieval policy.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getRules()
The policy rule.int
hashCode()
void
setRules
(Collection<DataRetrievalRule> rules) The policy rule.toString()
Returns a string representation of this object; useful for testing and debugging.withRules
(DataRetrievalRule... rules) The policy rule.withRules
(Collection<DataRetrievalRule> rules) The policy rule.
-
Constructor Details
-
DataRetrievalPolicy
public DataRetrievalPolicy()
-
-
Method Details
-
getRules
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
- Returns:
- The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
-
setRules
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
- Parameters:
rules
- The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
-
withRules
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
NOTE: This method appends the values to the existing list (if any). Use
setRules(java.util.Collection)
orwithRules(java.util.Collection)
if you want to override the existing values.- Parameters:
rules
- The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRules
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
- Parameters:
rules
- The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-