Enum ClusterPersistenceConfig.AOFConfig.AppendFsync (0.19.0)

public enum ClusterPersistenceConfig.AOFConfig.AppendFsync extends Enum<ClusterPersistenceConfig.AOFConfig.AppendFsync> implements ProtocolMessageEnum

Available fsync modes.

Protobuf enum google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync

Implements

ProtocolMessageEnum

Static Fields

Name Description
ALWAYS

fsync every time new commands are appended to the AOF. It has the best data loss protection at the cost of performance

ALWAYS = 3;

ALWAYS_VALUE

fsync every time new commands are appended to the AOF. It has the best data loss protection at the cost of performance

ALWAYS = 3;

APPEND_FSYNC_UNSPECIFIED

Not set. Default: EVERYSEC

APPEND_FSYNC_UNSPECIFIED = 0;

APPEND_FSYNC_UNSPECIFIED_VALUE

Not set. Default: EVERYSEC

APPEND_FSYNC_UNSPECIFIED = 0;

EVERYSEC

fsync every second. Fast enough, and you may lose 1 second of data if there is a disaster

EVERYSEC = 2;

EVERYSEC_VALUE

fsync every second. Fast enough, and you may lose 1 second of data if there is a disaster

EVERYSEC = 2;

NO

Never fsync. Normally Linux will flush data every 30 seconds with this configuration, but it's up to the kernel's exact tuning.

NO = 1;

NO_VALUE

Never fsync. Normally Linux will flush data every 30 seconds with this configuration, but it's up to the kernel's exact tuning.

NO = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()