@Override
  boolean shouldAccept(final NotificationEvent event) {
    // All txn related events are global ones and should be always accepted.
    // For other events, if the DB/table names are included as per replication scope, then should
    // accept the event. For alter table with table name filter, bootstrap of the table will be done if the new table
    // name matches the filter but the old table name does not. This can be judge only after deserialize of the message.
    return (isTxnRelatedEvent(event)
        || replScope.includedInReplScope(event.getDbName(), event.getTableName())
        || (replScope.dbIncludedInReplScope(event.getDbName())
                    && event.getEventType().equals(MessageBuilder.ALTER_TABLE_EVENT))
    );
  }
Utility function that constructs a notification filter to check if table is accepted for replication.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/event/filters/ReplEventFilter.java