Package s2.v1alpha
Interface StreamConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamConfig
,StreamConfig.Builder
public interface StreamConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAge()
Age in seconds for automatic trimming of records older than this threshold.StreamConfig.RetentionPolicyCase
getRetentionPolicyCase()
StorageClass
getStorageClass()
Storage class for recent writes.int
getStorageClassValue()
Storage class for recent writes.boolean
hasAge()
Age in seconds for automatic trimming of records older than this threshold.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getStorageClassValue
int getStorageClassValue()
Storage class for recent writes. This is the main cost:performance knob in S2.
.s2.v1alpha.StorageClass storage_class = 1;
- Returns:
- The enum numeric value on the wire for storageClass.
-
getStorageClass
StorageClass getStorageClass()
Storage class for recent writes. This is the main cost:performance knob in S2.
.s2.v1alpha.StorageClass storage_class = 1;
- Returns:
- The storageClass.
-
hasAge
boolean hasAge()
Age in seconds for automatic trimming of records older than this threshold. If set to 0, the stream will have infinite retention.
uint64 age = 2;
- Returns:
- Whether the age field is set.
-
getAge
long getAge()
Age in seconds for automatic trimming of records older than this threshold. If set to 0, the stream will have infinite retention.
uint64 age = 2;
- Returns:
- The age.
-
getRetentionPolicyCase
StreamConfig.RetentionPolicyCase getRetentionPolicyCase()
-
-