public static interface SyncItemCronJob.Configurator extends SyncItemCronJob.Confgurator
This is rather useful when configuration turns out to be time consuming and therefore cannot be performed synchronously with the application code.
SyncItemJob j = ...
SnycItemCronjob cj = j.newExecution();
cj.setConfiguration(
new Configurator()
{
public void configureCronjob( SyncItemCronJob cj, SyncItemCopyContext cc )
{
// add some items to synchronize, change some settings etc.
}
public CompletionInfo getCompletionInfo()
{
// return completion status if possible to show up in enclosing wizard
}
}
);
j.perform( cj, false );
| Modifier and Type | Method and Description |
|---|---|
void |
configureCronjob(SyncItemCronJob cronJob,
SyncItemJob.SyncItemCopyContext syncItemCopyContext) |
SyncItemJob.CompletionInfo |
getCompletionInfo() |
void configureCronjob(SyncItemCronJob cronJob, SyncItemJob.SyncItemCopyContext syncItemCopyContext)
configureCronjob in interface SyncItemCronJob.ConfguratorSyncItemJob.CompletionInfo getCompletionInfo()
getCompletionInfo in interface SyncItemCronJob.ConfguratorCopyright © 2018 SAP SE. All Rights Reserved.