public void addPartitionListener(PartitionListener listener) {
    ArrayList<PartitionListener> listeners = partitionListeners;
    if (listeners == null) {
      ArrayList<PartitionListener> al = new ArrayList<>(1);
      al.add(listener);
      addPartitionListeners(al);
    } else {
      synchronized (listeners) {
        listeners.add(listener);
      }
    }
  }
Constructs an instance of {@code PartitionAttributes} with default settings.

@see PartitionAttributesFactory
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionAttributesImpl.java