private void invokeAfterSecondaryInPartitionListeners() {
    PartitionListener[] listeners = pRegion.getPartitionListeners();
    if (listeners == null || listeners.length == 0) {
      return;
    }
    for (PartitionListener listener : listeners) {
      if (listener != null) {
        listener.afterSecondary(getBucket().getId());
      }
    }
  }
Invoked when the primary lock has been acquired by this VM.

@return true if successfully changed state to IS_PRIMARY
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java