Class DataExportPrepareEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.customdata.DataExportPrepareEvent
Called synchronously before an export reads storage data.
Listeners can register operations that persist their in-memory data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn operation that can report a persistence failure to the exporter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPreparation(DataExportPrepareEvent.Preparation preparation) Registers an operation to complete before exporting.voidprepare()Runs registered operations in order after listeners have been called.Methods inherited from class BoxEvent
toDebugLog
-
Constructor Details
-
DataExportPrepareEvent
public DataExportPrepareEvent()Creates an export preparation event.
-
-
Method Details
-
addPreparation
Registers an operation to complete before exporting.- Parameters:
preparation- the operation
-
prepare
-