public static final class FlushParam.Builder
extends java.lang.Object
FlushParam
class.Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FlushParam.Builder withCollectionNames(@NonNull
@NonNull java.util.List<java.lang.String> collectionNames)
collectionNames
- a list of collectionsBuilder
public FlushParam.Builder addCollectionName(@NonNull
@NonNull java.lang.String collectionName)
collectionName
- name of the collectionsBuilder
public FlushParam.Builder withSyncFlush(@NonNull
@NonNull java.lang.Boolean syncFlush)
syncFlush
- Boolean.TRUE
is sync mode, Boolean.FALSE
is notBuilder
public FlushParam.Builder withSyncFlushWaitingInterval(@NonNull
@NonNull java.lang.Long milliseconds)
milliseconds
- intervalBuilder
Constant
public FlushParam.Builder withSyncFlushWaitingTimeout(@NonNull
@NonNull java.lang.Long seconds)
seconds
- time out value for sync modeBuilder
Constant
public FlushParam build()
throws ParamException
FlushParam
instance.FlushParam
ParamException