Persistence Class

  • java.lang.Object
    • com.azure.resourcemanager.redisenterprise.models.Persistence

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 aofEnabled property: Sets whether AOF is enabled.

AofFrequency aofFrequency()

Get the aofFrequency property: Sets the frequency at which data is written to disk.

Boolean rdbEnabled()

Get the rdbEnabled property: Sets whether RDB is enabled.

RdbFrequency rdbFrequency()

Get the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.

void validate()

Validates the instance.

Persistence withAofEnabled(Boolean aofEnabled)

Set the aofEnabled property: Sets whether AOF is enabled.

Persistence withAofFrequency(AofFrequency aofFrequency)

Set the aofFrequency property: Sets the frequency at which data is written to disk.

Persistence withRdbEnabled(Boolean rdbEnabled)

Set the rdbEnabled property: Sets whether RDB is enabled.

Persistence withRdbFrequency(RdbFrequency rdbFrequency)

Set the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.

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:

the aofEnabled value.

aofFrequency

public AofFrequency aofFrequency()

Get the aofFrequency property: Sets the frequency at which data is written to disk.

Returns:

the aofFrequency value.

rdbEnabled

public Boolean rdbEnabled()

Get the rdbEnabled property: Sets whether RDB is enabled.

Returns:

the rdbEnabled value.

rdbFrequency

public RdbFrequency rdbFrequency()

Get the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.

Returns:

the rdbFrequency value.

validate

public void validate()

Validates the instance.

withAofEnabled

public Persistence withAofEnabled(Boolean aofEnabled)

Set the aofEnabled property: Sets whether AOF is enabled.

Parameters:

aofEnabled - the aofEnabled value to set.

Returns:

the Persistence object itself.

withAofFrequency

public Persistence withAofFrequency(AofFrequency aofFrequency)

Set the aofFrequency property: Sets the frequency at which data is written to disk.

Parameters:

aofFrequency - the aofFrequency value to set.

Returns:

the Persistence object itself.

withRdbEnabled

public Persistence withRdbEnabled(Boolean rdbEnabled)

Set the rdbEnabled property: Sets whether RDB is enabled.

Parameters:

rdbEnabled - the rdbEnabled value to set.

Returns:

the Persistence object itself.

withRdbFrequency

public Persistence withRdbFrequency(RdbFrequency rdbFrequency)

Set the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.

Parameters:

rdbFrequency - the rdbFrequency value to set.

Returns:

the Persistence object itself.

Applies to