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 longgetAge()Age in seconds for automatic trimming of records older than this threshold.StreamConfig.RetentionPolicyCasegetRetentionPolicyCase()StorageClassgetStorageClass()Storage class for recent writes.intgetStorageClassValue()Storage class for recent writes.booleanhasAge()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()
 
 - 
 
 -