Interface DistributedMetastorageLifecycleListener
-
- All Known Implementing Classes:
ClusterProcessor
public interface DistributedMetastorageLifecycleListenerListener forDistributedMetaStoragelifecycle events.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonReadyForRead(ReadableDistributedMetaStorage metastorage)Called when global metastorage is ready for reading.default voidonReadyForWrite(DistributedMetaStorage metastorage)Called when global metastorage is available for writing.
-
-
-
Method Detail
-
onReadyForRead
default void onReadyForRead(ReadableDistributedMetaStorage metastorage)
Called when global metastorage is ready for reading.
Normally this is the place where you should add listeners and read required data. Note that this data might be outdated.- Parameters:
metastorage- Read-only global metastorage.- See Also:
DistributedMetaStorageListener
-
onReadyForWrite
default void onReadyForWrite(DistributedMetaStorage metastorage)
Called when global metastorage is available for writing. In persistent mode this method will be invoked every time cluster is reactivated.- Parameters:
metastorage- Global metastorage instance.
-
-