public boolean isActive() {
        return state.get() == ACTIVE;
    }
Checks whether the transation's state is {@link #ACTIVE}.

@return true if the state is {@link #ACTIVE}; false otherwise
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseTransaction.java