Share via


AbstractPreferences.SyncSpi Method

Definition

This method is invoked with this node locked.

[Android.Runtime.Register("syncSpi", "()V", "GetSyncSpiHandler")]
protected abstract void SyncSpi ();
[<Android.Runtime.Register("syncSpi", "()V", "GetSyncSpiHandler")>]
abstract member SyncSpi : unit -> unit
Attributes

Exceptions

if the backing store is unavailable or causes an operation failure.

Remarks

This method is invoked with this node locked. The contract of this method is to synchronize any cached preferences stored at this node with any stored in the backing store. (It is perfectly possible that this node does not exist on the backing store, either because it has been deleted by another VM, or because it has not yet been created.) Note that this method should not synchronize the preferences in any subnodes of this node. If the backing store naturally syncs an entire subtree at once, the implementer is encouraged to override sync(), rather than merely overriding this method.

If this node throws a BackingStoreException, the exception will propagate out beyond the enclosing #sync() invocation.

Java documentation for java.util.prefs.AbstractPreferences.syncSpi().

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.

Applies to