public void addAsyncEventQueueId(String asyncEventQueueId, boolean isInternal) {
    getAsyncEventQueueIds().add(asyncEventQueueId);
    if (!isInternal) {
      getVisibleAsyncEventQueueIds().add(asyncEventQueueId);
    }
    setAllGatewaySenderIds();
  }
Use ONLY imSync for IndexManager get and set.

@return {@link IndexManager} lock.
geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegion.java