public static final class FlushParam.Builder
extends java.lang.Object
FlushParam class.| Modifier and Type | Method and Description |
|---|---|
FlushParam.Builder |
addCollectionName(@NonNull java.lang.String collectionName)
Adds a collection to be flushed.
|
FlushParam |
build()
Verifies parameters and creates a new
FlushParam instance. |
FlushParam.Builder |
withCollectionNames(@NonNull java.util.List<java.lang.String> collectionNames)
Sets a list of collections to be flushed.
|
FlushParam.Builder |
withSyncFlush(@NonNull java.lang.Boolean syncFlush)
Sets the flush function to sync mode.
|
FlushParam.Builder |
withSyncFlushWaitingInterval(@NonNull java.lang.Long milliseconds)
Sets waiting interval in sync mode.
|
FlushParam.Builder |
withSyncFlushWaitingTimeout(@NonNull java.lang.Long seconds)
Sets timeout value for sync mode.
|
public FlushParam.Builder withCollectionNames(@NonNull @NonNull java.util.List<java.lang.String> collectionNames)
collectionNames - a list of collectionsBuilderpublic FlushParam.Builder addCollectionName(@NonNull @NonNull java.lang.String collectionName)
collectionName - name of the collectionsBuilderpublic FlushParam.Builder withSyncFlush(@NonNull @NonNull java.lang.Boolean syncFlush)
syncFlush - Boolean.TRUE is sync mode, Boolean.FALSE is notBuilderpublic FlushParam.Builder withSyncFlushWaitingInterval(@NonNull @NonNull java.lang.Long milliseconds)
milliseconds - intervalBuilderConstantpublic FlushParam.Builder withSyncFlushWaitingTimeout(@NonNull @NonNull java.lang.Long seconds)
seconds - time out value for sync modeBuilderConstantpublic FlushParam build() throws ParamException
FlushParam instance.FlushParamParamException