Package org.nuxeo.ecm.core.bulk.message
Class BulkCommand
- java.lang.Object
-
- org.nuxeo.ecm.core.bulk.message.BulkCommand
-
- All Implemented Interfaces:
Serializable
public class BulkCommand extends Object implements Serializable
A message representing a bulk command- Since:
- 10.2
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BulkCommand.Builder
-
Field Summary
Fields Modifier and Type Field Description protected String
action
protected int
batchSize
protected int
bucketSize
protected boolean
externalScroller
protected boolean
genericScroller
protected String
id
protected Map<String,Serializable>
params
protected String
query
protected Long
queryLimit
protected String
repository
protected String
scroller
protected String
username
-
Constructor Summary
Constructors Modifier Constructor Description protected
BulkCommand()
BulkCommand(BulkCommand.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAction()
int
getBatchSize()
int
getBucketSize()
String
getId()
<T> T
getParam(String key)
Map<String,Serializable>
getParams()
String
getQuery()
Long
getQueryLimit()
When greater than 0, the limit applied to the query resultsString
getRepository()
String
getScroller()
String
getUsername()
int
hashCode()
void
setBatchSize(int batchSize)
void
setBucketSize(int bucketSize)
void
setQueryLimit(Long limit)
void
setRepository(String repository)
void
setScroller(String scrollerName)
String
toString()
boolean
useExternalScroller()
True if the command uses an external scroller.boolean
useGenericScroller()
True if the command uses a generic scroller.
-
-
-
Field Detail
-
queryLimit
@Nullable protected Long queryLimit
-
repository
@Nullable protected String repository
-
bucketSize
protected int bucketSize
-
batchSize
protected int batchSize
-
genericScroller
protected boolean genericScroller
-
externalScroller
protected boolean externalScroller
-
params
protected Map<String,Serializable> params
-
-
Constructor Detail
-
BulkCommand
protected BulkCommand()
-
BulkCommand
public BulkCommand(BulkCommand.Builder builder)
-
-
Method Detail
-
getUsername
public String getUsername()
-
getRepository
public String getRepository()
-
getScroller
public String getScroller()
-
useGenericScroller
public boolean useGenericScroller()
True if the command uses a generic scroller.- Since:
- 11.1
-
useExternalScroller
public boolean useExternalScroller()
True if the command uses an external scroller.- Since:
- 11.3
-
getParams
public Map<String,Serializable> getParams()
-
getBucketSize
public int getBucketSize()
-
getBatchSize
public int getBatchSize()
-
getQueryLimit
public Long getQueryLimit()
When greater than 0, the limit applied to the query results- Since:
- 11.4
-
setQueryLimit
public void setQueryLimit(Long limit)
-
setBatchSize
public void setBatchSize(int batchSize)
-
setBucketSize
public void setBucketSize(int bucketSize)
-
setRepository
public void setRepository(String repository)
-
setScroller
public void setScroller(String scrollerName)
-
-