public interface BatchedStateUpdatesStrategy
Modifier and Type | Method and Description |
---|---|
boolean |
onAsyncStateUpdateEnqueued(java.lang.String attribution,
boolean isCreateLayoutInProgress)
This method is called whenever an async state update was enqueued and added to the
StateHandler . |
void |
onInternalStateUpdateStart()
This method is called whenever
ComponentTree.updateStateInternal(boolean, String,
boolean) is called. |
void |
release()
This method should be called whenever the resources held by this strategy should be freed or
reset.
|
boolean onAsyncStateUpdateEnqueued(java.lang.String attribution, boolean isCreateLayoutInProgress)
StateHandler
.
This method should return true
if it is considering this update to its batching
strategy; otherwise it should simply return false
.
void onInternalStateUpdateStart()
ComponentTree.updateStateInternal(boolean, String,
boolean)
is called.
This will help the batching strategy on decide how to update its internal state by knowing that all current enqueued updates will be consumed soon.
void release()
This can be pending Runnable
, state variables, etc.