Interface SequenceViewerExtension.PropertyRetrieverAndEditor.DiscardReferencesCallback

Enclosing class:
SequenceViewerExtension.PropertyRetrieverAndEditor

public static interface SequenceViewerExtension.PropertyRetrieverAndEditor.DiscardReferencesCallback
  • Method Details

    • discardReferences

      void discardReferences(boolean waitUntilReferencesDiscardedBeforeReturning)
      indicates that values returned from a previous call to SequenceViewerExtension.PropertyRetrieverAndEditor.getVisibleAnnotations(PropertyRetrieverAndEditor.DiscardReferencesCallback) are about to become invalidated and any references to them must be discarded. The sequence viewer will first call this method with waitUntilReferencesDiscardedBeforeReturning==false on all listeners to indicate they should notify any background threads to cancel. Then the sequence viewer will call this method with waitUntilReferencesDiscardedBeforeReturning==true on all listeners, and each listener should block until any background tasks have finished cancelling.
      Parameters:
      waitUntilReferencesDiscardedBeforeReturning - true if the method should block until the references have been discarded.