Package com.e1c.langtool.v8.dt.sync
Class AbstractBmSyncSession.BatchSessionController
java.lang.Object
com.e1c.langtool.v8.dt.sync.AbstractBmSyncSession.BatchSessionController
- All Implemented Interfaces:
IBatchSessionController
- Enclosing class:
- AbstractBmSyncSession
protected static final class AbstractBmSyncSession.BatchSessionController
extends Object
implements IBatchSessionController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould returntrueif saving of all resources should be done in asynchronous mode,false- otherwise.booleanReturnstrueif saving of all resources can be done in parallel,false- otherwise.voidCalled right after enqueing all events being collected during the batch mode.voidCalled right after the end of saving of all resources being changed during the batch mode.voidCalled right before the event processing collected by the batch mode.voidonBeforeSave(int taskCount) Called right before saving of all resources being changed during the batch mode.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.bm.integration.IBatchSessionController
getServiceId
-
Constructor Details
-
BatchSessionController
protected BatchSessionController()
-
-
Method Details
-
onBeforeEventProcessing
public void onBeforeEventProcessing()Description copied from interface:IBatchSessionControllerCalled right before the event processing collected by the batch mode.- Specified by:
onBeforeEventProcessingin interfaceIBatchSessionController
-
onAfterSave
public void onAfterSave()Description copied from interface:IBatchSessionControllerCalled right after the end of saving of all resources being changed during the batch mode.- Specified by:
onAfterSavein interfaceIBatchSessionController
-
onAfterEventProcessing
public void onAfterEventProcessing()Description copied from interface:IBatchSessionControllerCalled right after enqueing all events being collected during the batch mode.- Specified by:
onAfterEventProcessingin interfaceIBatchSessionController
-
onBeforeSave
public void onBeforeSave(int taskCount) Description copied from interface:IBatchSessionControllerCalled right before saving of all resources being changed during the batch mode.- Specified by:
onBeforeSavein interfaceIBatchSessionController- Parameters:
taskCount- The collected save task count.
-
isParallelSaveAllowed
public boolean isParallelSaveAllowed()Description copied from interface:IBatchSessionControllerReturnstrueif saving of all resources can be done in parallel,false- otherwise.- Specified by:
isParallelSaveAllowedin interfaceIBatchSessionController- Returns:
trueif saving of all resources can be done in parallel,false- otherwise.
-
isAsyncSaveRequired
public boolean isAsyncSaveRequired()Description copied from interface:IBatchSessionControllerShould returntrueif saving of all resources should be done in asynchronous mode,false- otherwise.- Specified by:
isAsyncSaveRequiredin interfaceIBatchSessionController- Returns:
- The async. save flag
-