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
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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()
-