public boolean isPrimary() {
    return isPrimary;
  }
Returns true if the dispatcher for this HARegionQueue is active.

@return the true if dispatcher for this HARegionQueue is active(primary node)
geode-core/src/main/java/org/apache/geode/internal/cache/ha/HARegionQueue.java