public static final class LoadCollectionParam.Builder
extends java.lang.Object
LoadCollectionParam class.| Modifier and Type | Method and Description |
|---|---|
LoadCollectionParam |
build()
Verifies parameters and creates a new
LoadCollectionParam instance. |
LoadCollectionParam.Builder |
withCollectionName(@NonNull java.lang.String collectionName)
Sets the collection name.
|
LoadCollectionParam.Builder |
withReplicaNumber(@NonNull java.lang.Integer replicaNumber)
Specify replica number to load
|
LoadCollectionParam.Builder |
withSyncLoad(@NonNull java.lang.Boolean syncLoad)
Enable sync mode for load action.
|
LoadCollectionParam.Builder |
withSyncLoadWaitingInterval(@NonNull java.lang.Long milliseconds)
Sets waiting interval in sync mode.
|
LoadCollectionParam.Builder |
withSyncLoadWaitingTimeout(@NonNull java.lang.Long seconds)
Sets timeout value for the sync mode.
|
public LoadCollectionParam.Builder withCollectionName(@NonNull @NonNull java.lang.String collectionName)
collectionName - collection nameBuilderpublic LoadCollectionParam.Builder withSyncLoad(@NonNull @NonNull java.lang.Boolean syncLoad)
If sync mode disabled, client returns at once after the loadCollection() is called.
syncLoad - Boolean.TRUE is sync mode, Boolean.FALSE is notBuilderpublic LoadCollectionParam.Builder withSyncLoadWaitingInterval(@NonNull @NonNull java.lang.Long milliseconds)
milliseconds - intervalBuilderConstantpublic LoadCollectionParam.Builder withSyncLoadWaitingTimeout(@NonNull @NonNull java.lang.Long seconds)
seconds - time out value for sync modeBuilderConstantpublic LoadCollectionParam.Builder withReplicaNumber(@NonNull @NonNull java.lang.Integer replicaNumber)
replicaNumber - replica numberBuilderpublic LoadCollectionParam build() throws ParamException
LoadCollectionParam instance.LoadCollectionParamParamException