Persistence Class
- java.
lang. Object - com.
azure. resourcemanager. redisenterprise. models. Persistence
- com.
public final class Persistence
Persistence settings Persistence-related configuration for the RedisEnterprise database.
Constructor Summary
Constructor | Description |
---|---|
Persistence() |
Creates an instance of Persistence class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
aofEnabled()
Get the aof |
Aof |
aofFrequency()
Get the aof |
Boolean |
rdbEnabled()
Get the rdb |
Rdb |
rdbFrequency()
Get the rdb |
void |
validate()
Validates the instance. |
Persistence |
withAofEnabled(Boolean aofEnabled)
Set the aof |
Persistence |
withAofFrequency(AofFrequency aofFrequency)
Set the aof |
Persistence |
withRdbEnabled(Boolean rdbEnabled)
Set the rdb |
Persistence |
withRdbFrequency(RdbFrequency rdbFrequency)
Set the rdb |
Methods inherited from java.lang.Object
Constructor Details
Persistence
public Persistence()
Creates an instance of Persistence class.
Method Details
aofEnabled
public Boolean aofEnabled()
Get the aofEnabled property: Sets whether AOF is enabled.
Returns:
aofFrequency
public AofFrequency aofFrequency()
Get the aofFrequency property: Sets the frequency at which data is written to disk.
Returns:
rdbEnabled
public Boolean rdbEnabled()
Get the rdbEnabled property: Sets whether RDB is enabled.
Returns:
rdbFrequency
public RdbFrequency rdbFrequency()
Get the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.
Returns:
validate
public void validate()
Validates the instance.
withAofEnabled
public Persistence withAofEnabled(Boolean aofEnabled)
Set the aofEnabled property: Sets whether AOF is enabled.
Parameters:
Returns:
withAofFrequency
public Persistence withAofFrequency(AofFrequency aofFrequency)
Set the aofFrequency property: Sets the frequency at which data is written to disk.
Parameters:
Returns:
withRdbEnabled
public Persistence withRdbEnabled(Boolean rdbEnabled)
Set the rdbEnabled property: Sets whether RDB is enabled.
Parameters:
Returns:
withRdbFrequency
public Persistence withRdbFrequency(RdbFrequency rdbFrequency)
Set the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.
Parameters:
Returns:
Applies to
Azure SDK for Java