public class DeltaJobConfig extends Object implements IdentifiedDataSerializable
JobConfig. All options are
initially unchanged, options for which the set-method is called will be
changed when this delta is applied, others will
be unaffected.
Contains only a subset of options - those that can be changed after the job was submitted.
Job.updateConfig(DeltaJobConfig),
JobConfig| Constructor and Description |
|---|
DeltaJobConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(JobConfig config)
Applies the changes represented by this instance to the specified
configuration.
|
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
DeltaJobConfig |
setAutoScaling(boolean enabled) |
DeltaJobConfig |
setMaxProcessorAccumulatedRecords(long maxProcessorAccumulatedRecords) |
DeltaJobConfig |
setMetricsEnabled(boolean enabled) |
DeltaJobConfig |
setSnapshotIntervalMillis(long snapshotInterval) |
DeltaJobConfig |
setSplitBrainProtection(boolean isEnabled) |
DeltaJobConfig |
setStoreMetricsAfterJobCompletion(boolean storeMetricsAfterJobCompletion) |
DeltaJobConfig |
setSuspendOnFailure(boolean suspendOnFailure) |
DeltaJobConfig |
setTimeoutMillis(long timeoutMillis) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
@Nonnull public DeltaJobConfig setSnapshotIntervalMillis(long snapshotInterval)
this instance for fluent APIJobConfig.setSnapshotIntervalMillis(long)public DeltaJobConfig setAutoScaling(boolean enabled)
this instance for fluent APIJobConfig.setAutoScaling(boolean)public DeltaJobConfig setSuspendOnFailure(boolean suspendOnFailure)
this instance for fluent APIJobConfig.setSuspendOnFailure(boolean)@Nonnull public DeltaJobConfig setSplitBrainProtection(boolean isEnabled)
this instance for fluent APIJobConfig.setSplitBrainProtection(boolean)@Nonnull public DeltaJobConfig setMetricsEnabled(boolean enabled)
this instance for fluent APIJobConfig.setMetricsEnabled(boolean)public DeltaJobConfig setStoreMetricsAfterJobCompletion(boolean storeMetricsAfterJobCompletion)
this instance for fluent APIJobConfig.setStoreMetricsAfterJobCompletion(boolean)public DeltaJobConfig setMaxProcessorAccumulatedRecords(long maxProcessorAccumulatedRecords)
this instance for fluent APIJobConfig.setMaxProcessorAccumulatedRecords(long)public DeltaJobConfig setTimeoutMillis(long timeoutMillis)
this instance for fluent APIJobConfig.setTimeoutMillis(long)public void applyTo(JobConfig config)
@PrivateApi public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializable@PrivateApi public int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializable@PrivateApi public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.@PrivateApi public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2023 Hazelcast, Inc.. All rights reserved.