private boolean getIsRunningAndDropEventIfNotRunning(EntryEventImpl event, boolean isDebugEnabled,
      EntryEventImpl clonedEvent) {
    if (isRunning()) {
      return true;
    }
    if (isPrimary()) {
      recordDroppedEvent(clonedEvent);
    }
    if (isDebugEnabled) {
      logger.debug("Returning back without putting into the gateway sender queue:" + event);
    }
    return false;
  }
Check if this event can be distributed by senders.

@return boolean True if the event is allowed.
geode-core/src/main/java/org/apache/geode/internal/cache/wan/AbstractGatewaySender.java