public interface IGridCache
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(IGridNode gridNode,
IGridHost machine)
informs you cache that a machine was added to the grid.
|
void |
onJoin(IGridStorage sourceStorage)
Called when two grids merge into one, AE will call a join as it
Iteratively processes changes.
|
void |
onSplit(IGridStorage destinationStorage)
Called when a grid splits into two grids, AE will call a split as it
Iteratively processes changes.
|
void |
onUpdateTick()
Called each tick for the network, allows you to have active network wide
behaviors.
|
void |
populateGridStorage(IGridStorage destinationStorage)
Called when saving changes,
|
void |
removeNode(IGridNode gridNode,
IGridHost machine)
inform your cache, that a machine was removed from the grid.
|
void onUpdateTick()
void removeNode(@Nonnull
IGridNode gridNode,
@Nonnull
IGridHost machine)
gridNode - removed from that gridmachine - to be removed machinevoid addNode(@Nonnull
IGridNode gridNode,
@Nonnull
IGridHost machine)
gridNode - added to grid nodemachine - to be added machinevoid onSplit(@Nonnull
IGridStorage destinationStorage)
destinationStorage - storage which receives half of old gridvoid onJoin(@Nonnull
IGridStorage sourceStorage)
sourceStorage - old storagevoid populateGridStorage(@Nonnull
IGridStorage destinationStorage)
destinationStorage - storage