public class BulkOperationOptions extends Object
Constructor and Description |
---|
BulkOperationOptions() |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxOpsPerSec()
Limits the amount of base operation per second allowed.
|
Long |
getStaleTimeout()
If AllowStale is set to false and index is stale, then this is the maximum timeout to wait for index to become non-stale.
|
boolean |
isAllowStale()
Indicates whether operations are allowed on stale indexes.
|
boolean |
isRetrieveDetails()
Determines whether operation details about each document should be returned by server.
|
void |
setAllowStale(boolean allowStale)
Indicates whether operations are allowed on stale indexes.
|
void |
setMaxOpsPerSec(Integer maxOpsPerSec)
Limits the amount of base operation per second allowed.
|
void |
setRetrieveDetails(boolean retrieveDetails)
Determines whether operation details about each document should be returned by server.
|
void |
setStaleTimeout(Long staleTimeout)
If AllowStale is set to false and index is stale, then this is the maximum timeout to wait for index to become non-stale.
|
public boolean isRetrieveDetails()
public void setRetrieveDetails(boolean retrieveDetails)
retrieveDetails
- public boolean isAllowStale()
public void setAllowStale(boolean allowStale)
allowStale
- public Long getStaleTimeout()
public void setStaleTimeout(Long staleTimeout)
staleTimeout
- public Integer getMaxOpsPerSec()
public void setMaxOpsPerSec(Integer maxOpsPerSec)
maxOpsPerSec
- Copyright © 2016. All Rights Reserved.