AbstractPreferences.Flush Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements the flush
method as per the specification in
Preferences#flush()
.
[Android.Runtime.Register("flush", "()V", "GetFlushHandler")]
public override void Flush ();
[<Android.Runtime.Register("flush", "()V", "GetFlushHandler")>]
override this.Flush : unit -> unit
- Attributes
Exceptions
Remarks
Implements the flush
method as per the specification in Preferences#flush()
.
This implementation calls a recursive helper method that locks this node, invokes flushSpi() on it, unlocks this node, and recursively invokes this method on each "cached child." A cached child is a child of this node that has been created in this VM and not subsequently removed. In effect, this method does a depth first traversal of the "cached subtree" rooted at this node, calling flushSpi() on each node in the subTree while only that node is locked. Note that flushSpi() is invoked top-down.
If this method is invoked on a node that has been removed with the #removeNode()
method, flushSpi() is invoked on this node, but not on others.
Java documentation for java.util.prefs.AbstractPreferences.flush()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.