|Constructor and Description|
Create a new instance for dispatching content changes
|Modifier and Type||Method and Description|
Register a new
Observes a content change.
public ChangeDispatcher(@NotNull @NotNull NodeState root)
root- current root node state
Observerfor receiving notifications about changes reported to this change dispatcher. Changes are reported synchronously and clients need to ensure to no block any length of time (e.g. by relaying through a
Clients need to call
Closeable.close() close} on the returned
Closeable instance to stop receiving notifications.
public void contentChanged(@NotNull @NotNull NodeState root, @NotNull @NotNull CommitInfo info)
Observerclass javadocs and relevant repository and observer registration details for more information on when and how this method gets called.
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.